本文へスキップ
Skillpedia
WebサイトとUI(フロントエンド)75k · #2894

input-types

できること

このスキルは、フォームの欄が最も適した HTML の入力の種類と、自動入力の設定を使っているかを確認します。サインアップ、チェックアウト、お問い合わせのフォームを作る開発者向けです。

使う場面

  • ✓メールや電話の欄で、モバイルに普通のキーボードしか出ないとき。
  • ✓ブラウザが、名前、住所、支払いの欄を自動入力できないとき。
  • ✓スマートフォンで記入しやすいフォームを新しく作るとき。

スキルのリンク

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/input-types/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/input-types/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“フォームの欄を確認して、モバイル向けに正しい入力の種類を設定してもらえますか。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは各入力要素を確認し、email、tel、number などの意味のある種類を提案します。また、ブラウザが保存された情報を入力できるように、autocomplete の値も追加します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Use semantic input type attributes

Using type=text for every input forces mobile users to switch keyboards manually for email, phone, and number entry. The correct type also enables browser autofill to correctly identify fields for name, address, and payment data. Combined with autocomplete attributes, semantic types can make form completion 40% faster for returning users.

Quick Reference

  • type=email shows the @ keyboard on mobile and enables email format validation
  • type=tel shows the numeric phone keypad on mobile
  • type=number shows a numeric keypad; use inputmode=numeric for fields that look like numbers but aren't
  • type=date/time renders native pickers and returns standardized values

Check

Audit all input elements in this HTML file. Check whether each uses the most appropriate type attribute and autocomplete value.

Fix

Update input type attributes to semantic values and add appropriate autocomplete attributes for autofill support.

Explain

Explain the different HTML input types, what each one does on mobile keyboards, and how to combine them with autocomplete attributes.

Code Review

Review templates, server-rendered HTML, and shared components that output markup related to Use semantic input type attributes. Flag exact elements, attributes, and routes where the rendered HTML violates the rule.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/html/input-types

よくある質問

type=email はスマートフォンで何を変えますか?

@ 記号のあるキーボードが表示され、メール形式のチェックも有効になるとこのスキルは説明しています。

inputmode=numeric はいつ使うべきですか?

数字のように見えるが数値ではない欄、例えばコードなどに使うことを提案しています。

フォームの記入は速くなりますか?

意味のある種類と autocomplete を組み合わせると、再訪問の利用者がフォームを早く終えられるとこのスキルは説明しています。

詳細

作者による元の説明

Use when reviewing templates, rendered HTML, or shared components related to Use semantic input type attributes. Validate the final browser-facing markup, not just the source framework abstraction.

repo: thedaviddias/Front-End-Checklist

人気

GitHubのスター
75k
ランキング
#2894
ライセンス
MIT
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル