Skip to content
95

Forms

<input> Input

A single form control. Its type turns it into a text box, checkbox, date picker, slider and twenty more.

Live specimen

Tip. The heaviest element on the table. Pick the right type, like email or tel, to get the right phone keyboard.

Since
HTML 2.0
Implicit role
textbox
Void
Yes, no children

Attributes
32

  • accept
  • alt
  • autocomplete
  • checked
  • dirname
  • disabled
  • form
  • formaction
  • formenctype
  • formmethod
  • formnovalidate
  • formtarget
  • height
  • list
  • max
  • maxlength
  • min
  • minlength
  • multiple
  • name
  • pattern
  • placeholder
  • popovertarget
  • popovertargetaction
  • readonly
  • required
  • size
  • src
  • step
  • type
  • value
  • width