Input Types
HTML5 introduced many input types that provide built-in validation and mobile-friendly keyboards.
Text Input Types
Loading HTML Playground...
Each type provides:
- Appropriate virtual keyboard on mobile
- Built-in validation for some types
Number Inputs
Loading HTML Playground...
Date and Time Inputs
Loading HTML Playground...
Date inputs:
- Show native date pickers
- Format varies by locale
minandmaxrestrict dates
Color and File
Loading HTML Playground...
File input attributes:
multiple- Allow multiple filesaccept- Restrict file types
Checkboxes
Loading HTML Playground...
Checkbox notes:
- Same
namefor related checkboxes checkedattribute pre-selects- Multiple can be selected
Radio Buttons
Loading HTML Playground...
Radio button notes:
- Same
namegroups radio buttons - Only one can be selected
checkedsets default
Hidden Inputs
Loading HTML Playground...
Exercise: Create a Survey Form
Create a survey with different input types:
Loading HTML Exercise...
Different input types provide appropriate interfaces and validation for each data type!
التالي · الدرس 22 من 32
Select, Textarea, and Buttons
قراءة 2 دقيقة
أنهيت 21 من 32 درسًا

اسأل Byte عن هذا الدرس
محادثة خاصة حول هذا الدرس. قرأ Byte الدرس كاملًا، ويجيب خلال ثوانٍ، ويُظهر القسم الذي تأتي منه كل إجابة. يمكنك السؤال بأي لغة.
الأسئلة والأجوبة
أسئلة عامة حول هذا الدرس. يجيب AI Tutor فورًا بلغتك، ويراجع فريق FreeAcademy الإجابات، ويمكن لكل المتعلمين قراءتها.

