input-types
できること
このスキルは、フォームの欄が最も適した HTML の入力の種類と、自動入力の設定を使っているかを確認します。サインアップ、チェックアウト、お問い合わせのフォームを作る開発者向けです。
使う場面
- ✓メールや電話の欄で、モバイルに普通のキーボードしか出ないとき。
- ✓ブラウザが、名前、住所、支払いの欄を自動入力できないとき。
- ✓スマートフォンで記入しやすいフォームを新しく作るとき。
スキルのリンク
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/input-types/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
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.
人気
- GitHubのスター
- 75k
- ランキング
- #2894
- ライセンス
- MIT
- 更新日
- 2026/10/31
コメント
- …
このリポジトリの他のスキル
frontendchecklist
75kコマンドラインツールを使って、フロントエンドのコードとライブページを、アクセシビリティ、速度、SEO、セキュリティに関する380以上のルールと照らし合わせて確認します。
frontend-checklist-global
75kフロントエンドのプロジェクトを、386のFront-End Checklistのルールすべてと照らし合わせて監査し、見つかった問題ごとに具体的な修正方法を示します。
404-page
75k見つからないページの画面に役立つリンクがあり、本物の404ステータスを返すかを確認し、迷った訪問者が目的のページを見つけられるようにします。
about-page
75kサイトの運営者が誰かを説明する、分かりやすいAboutページがあるかを確認し、訪問者と検索エンジンからの信頼を高めます。
似ているスキル
angular-developer
280kエージェントがAngularのコードを作成し、プロジェクト構成についてアドバイスできるようにします。新しいプロジェクトの開始、コード部品の作成、パフォーマンスやアクセシビリティの改善に役立ちます。
frontend-a11y
280kエージェントが Web インターフェースを誰にとっても使いやすくするよう支援します。スクリーンリーダーやキーボード操作に対応し、サイトやアプリが適切に動作するようにします。
frontend-patterns
280kエージェントがフロントエンド開発の最新パターンを適用できるようにします。React と Next.js において、パフォーマンスの最適化、状態管理、ベストプラクティスの遵守を行います。