Completion requirements
The <input>
element is used to create interactive controls for web-based forms to accept data from the user. Various types of input data and control widgets are available, depending on what use you need. The <input>
element is one of HTML's most powerful and complex. The DOM HTMLInputElement
interface provides the properties and methods for working with the options, layout, and presentation of <input>
elements.
Technical summary
Content categories |
Flow content, listed, submittable, resettable, form-associated element,
phrasing content. If the type is not
hidden , then labelable element, palpable content.
|
---|---|
Permitted content | None; it is a void element. |
Tag omission | Must have a start tag and must not have an end tag. |
Permitted parents | Any element that accepts phrasing content. |
Implicit ARIA role |
|
Permitted ARIA roles |
|
DOM interface | HTMLInputElement |