HTML FormsLesson 45Free preview
HTML Input Attributes
This lesson is part of HTML · All levels
Summary
Attributes to the <input> element enrich filling behavior, such as value for initial value, placeholder for guidance, and readonly or disabled to limit input. The required attribute marks the mandatory filling, while the minlength and maxlength limit the length of the text. These attributes help maintain the quality of data before it is sent to the server.
Key points
- Value fills the initial value, placeholder gives the filling instructions
- Required marking of compulsory filling
- Readonly displays value without being modifiable, disabled disables filing
- Minlength and maxlength limit the length of the text
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.