17 lines
624 B
Plaintext
17 lines
624 B
Plaintext
The HTML <input> element is used to create interactive controls for web-based forms in order to accept data from the user. The semantics of an <input> varies considerably depending on the value of its type attribute.
|
|
|
|
Content categories:
|
|
Flow content, listed, submittable, resettable, form-associated element, phrasing content.
|
|
If the type has not the hidden value, labellable element, palpable content.
|
|
|
|
Permitted content:
|
|
None, it is an empty element.
|
|
|
|
Tag omission:
|
|
Must have a start tag and must not have an end tag.
|
|
|
|
Permitted parent elements:
|
|
Any element that accepts phrasing content.
|
|
|
|
DOM interface:
|
|
HTMLInputElement |