Skillpedia
المواقع والواجهات (frontend)75k · #2894

input-types

ما الذي تفعله

تراجع هذه المهارة حقول النماذج للتأكد من أنها تستخدم نوع إدخال HTML الأنسب وإعدادات autocomplete. وهي موجهة للمطورين الذين يبنون نماذج التسجيل والدفع والتواصل.

متى تستخدمها

  • ✓عندما تعرض حقول البريد أو الهاتف لوحة مفاتيح عادية على الجوال.
  • ✓عندما يفشل المتصفح في ملء حقول الاسم أو العنوان أو الدفع تلقائيًا.
  • ✓عندما تبني نموذجًا جديدًا وتريد أن يكون سهل الإكمال من الهاتف.

رابط المهارة

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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/input-types/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“هل يمكنك فحص حقول النموذج لدي وضبط أنواع الإدخال الصحيحة للجوال؟”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يراجع الوكيل كل عنصر إدخال ويقترح أنواعًا دلالية مثل 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

الأسئلة الشائعة

ماذا يغيّر نوع 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
آخر تحديث
31‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة