Allowed form fields

Here is the full list of allowed field types, together with the available attributes and options for each of them.

Field type Available attributes Available options
checkbox

accesskey (string)

class (string)

checked (boolean)

contenteditable (boolean)

dir (string)

disabled (boolean)

readonly (boolean)

draggable (boolean)

hidden (boolean)

id (string)

name (string)

itemid (string)

itemprop (string)

itemref (string)

itemscope (string)

itemtype (string)

lang (string)

tabindex (string)

title (string)

value (string)

color

accesskey (string)

class (string)

autocomplete (string)

contenteditable (boolean)

dir (string)

disabled (boolean)

readonly (boolean)

draggable (boolean)

hidden (boolean)

required (boolean)

id (string)

name (string)

itemid (string)

itemprop (string)

itemref (string)

itemscope (string)

itemtype (string)

lang (string)

list (string)

tabindex (string)

title (string)

value (string)

datalist

accesskey (string)

class (string)

contenteditable (boolean)

dir (string)

disabled (boolean)

readonly (boolean)

draggable (boolean)

hidden (boolean)

id (string)

name (string)

itemid (string)

itemprop (string)

itemref (string)

itemscope (string)

itemtype (string)

lang (string)

tabindex (string)

title (string)

value (string)

options (array)

[value (string)]

form datalist options

date

accesskey (string)

class (string)

autocomplete (string)

contenteditable (boolean)

dir (string)

disabled (boolean)

readonly (boolean)

draggable (boolean)

hidden (boolean)

id (string)

name (string)

itemid (string)

itemprop (string)

itemref (string)

itemscope (string)

itemtype (string)

lang (string)

list (string)

max (string)

min (string)

required (boolean)

step (string)

tabindex (string)

title (string)

value (string)

datetime-local

accesskey (string)

class (string)

autocomplete (string)

contenteditable (boolean)

dir (string)

disabled (boolean)

readonly (boolean)

draggable (boolean)

hidden (boolean)

id (string)

name (string)

itemid (string)

itemprop (string)

itemref (string)

itemscope (string)

itemtype (string)

lang (string)

list (string)

max (string)

min (string)

required (boolean)

step (string)

tabindex (string)

title (string)

value (string)

email

accesskey (string)

class (string)

autocomplete (string)

contenteditable (boolean)

dir (string)

disabled (boolean)

readonly (boolean)

draggable (boolean)

hidden (boolean)

id (string)

name (string)

placeholder (string)

itemid (string)

itemprop (string)

itemref (string)

itemscope (string)

itemtype (string)

lang (string)

list (string)

maxlength (string)

minlength (string)

multiple (string)

required (boolean)

size (string)

tabindex (string)

title (string)

value (string)

file

accept (string)

accesskey (string)

class (string)

capture (string)

contenteditable (boolean)

dir (string)

disabled (boolean)

readonly (boolean)

draggable (boolean)

hidden (boolean)

id (string)

name (string)

itemid (string)

itemprop (string)

itemref (string)

itemscope (string)

itemtype (string)

lang (string)

multiple (string)

required (boolean)

tabindex (string)

title (string)

value (string)

hidden

accesskey (string)

class (string)

autocomplete (string)

contenteditable (boolean)

dir (string)

disabled (boolean)

readonly (boolean)

draggable (boolean)

hidden (boolean)

id (string)

name (string)

itemid (string)

itemprop (string)

itemref (string)

itemscope (string)

itemtype (string)

lang (string)

tabindex (string)

title (string)

value (string)

image

accesskey (string)

class (string)

alt (string)

contenteditable (boolean)

dir (string)

disabled (boolean)

readonly (boolean)

draggable (boolean)

height (string)

hidden (boolean)

id (string)

name (string)

itemid (string)

itemprop (string)

itemref (string)

itemscope (string)

itemtype (string)

lang (string)

src (string)

tabindex (string)

title (string)

value (string)

width (string)

label

dir (string)

id (string)

name (string)

lang (string)

month

accesskey (string)

class (string)

autocomplete (string)

contenteditable (boolean)

dir (string)

disabled (boolean)

readonly (boolean)

draggable (boolean)

hidden (boolean)

id (string)

name (string)

itemid (string)

itemprop (string)

itemref (string)

itemscope (string)

itemtype (string)

lang (string)

list (string)

max (string)

min (string)

required (boolean)

step (string)

tabindex (string)

title (string)

value (string)

number

accesskey (string)

class (string)

autocomplete (string)

contenteditable (boolean)

dir (string)

disabled (boolean)

readonly (boolean)

draggable (boolean)

hidden (boolean)

id (string)

name (string)

itemid (string)

itemprop (string)

itemref (string)

itemscope (string)

itemtype (string)

lang (string)

list (string)

max (number)

min (number)

required (boolean)

step (number)

tabindex (string)

title (string)

value (string)

password

accesskey (string)

class (string)

autocomplete (string)

contenteditable (boolean)

dir (string)

disabled (boolean)

readonly (boolean)

draggable (boolean)

hidden (boolean)

id (string)

name (string)

itemid (string)

itemprop (string)

itemref (string)

itemscope (string)

itemtype (string)

lang (string)

maxlength (string)

minlength (string)

pattern (boolean)

placeholder (string)

required (boolean)

size (string)

tabindex (string)

title (string)

value (string)

radio

accesskey (string)

class (string)

checked (boolean)

contenteditable (boolean)

dir (string)

disabled (boolean)

readonly (boolean)

draggable (boolean)

hidden (boolean)

id (string)

name (string)

itemid (string)

itemprop (string)

itemref (string)

itemscope (string)

itemtype (string)

lang (string)

required (boolean)

tabindex (string)

title (string)

value (string)

range

accesskey (string)

class (string)

autocomplete (string)

contenteditable (boolean)

dir (string)

disabled (boolean)

readonly (boolean)

draggable (boolean)

hidden (boolean)

id (string)

name (string)

itemid (string)

itemprop (string)

itemref (string)

itemscope (string)

itemtype (string)

lang (string)

list (string)

max (number)

min (number)

step (number)

tabindex (string)

title (string)

value (string)

select

accesskey (string)

class (string)

autocomplete (string)

contenteditable (boolean)

dir (string)

disabled (boolean)

readonly (boolean)

draggable (boolean)

hidden (boolean)

id (string)

name (string)

itemid (string)

itemprop (string)

itemref (string)

itemscope (string)

itemtype (string)

lang (string)

multiple (string)

required (boolean)

size (string)

tabindex (string)

title (string)

value (string)

options (array)

-[type (string) "option"

value (string)

label (string)

-type (string) "optgroup"

options (array)

[type (string) "option"

value (string)

label (string)]

]

form select options

search

accesskey (string)

class (string)

autocomplete (string)

contenteditable (boolean)

dir (string)

dirname (string)

disabled (boolean)

readonly (boolean)

draggable (boolean)

hidden (boolean)

id (string)

name (string)

itemid (string)

itemprop (string)

itemref (string)

itemscope (string)

itemtype (string)

lang (string)

list (string)

maxlength (string)

minlength (string)

placeholder (string)

required (boolean)

tabindex (string)

title (string)

value (string)

submit

accesskey (string)

class (string)

contenteditable (boolean)

dir (string)

disabled (boolean)

readonly (boolean)

draggable (boolean)

hidden (boolean)

id (string)

name (string)

itemid (string)

itemprop (string)

itemref (string)

itemscope (string)

itemtype (string)

lang (string)

tabindex (string)

title (string)

value (string)

width (string)

tel

accesskey (string)

class (string)

autocomplete (string)

contenteditable (boolean)

dir (string)

disabled (boolean)

readonly (boolean)

draggable (boolean)

hidden (boolean)

id (string)

name (string)

itemid (string)

itemprop (string)

itemref (string)

itemscope (string)

itemtype (string)

lang (string)

maxlength (string)

minlength (string)

pattern (boolean)

placeholder (string)

required (boolean)

size (string)

tabindex (string)

title (string)

value (string)

text

accesskey (string)

class (string)

autocomplete (string)

contenteditable (boolean)

dir (string)

dirname (string)

disabled (boolean)

readonly (boolean)

draggable (boolean)

hidden (boolean)

id (string)

name (string)

itemid (string)

itemprop (string)

itemref (string)

itemscope (string)

itemtype (string)

lang (string)

list (string)

maxlength (string)

minlength (string)

pattern (boolean)

placeholder (string)

required (boolean)

size (string)

tabindex (string)

title (string)

value (string)

textarea

accesskey (string)

class (string)

autocomplete (string)

cols (number)

contenteditable (boolean)

dir (string)

disabled (boolean)

readonly (boolean)

draggable (boolean)

hidden (boolean)

id (string)

name (string)

itemid (string)

itemprop (string)

itemref (string)

itemscope (string)

itemtype (string)

lang (string)

maxlength (string)

minlength (string)

placeholder (string)

required (boolean)

rows (number)

spellcheck (string)

tabindex (string)

title (string)

value (string)

wrap (string)

time

accesskey (string)

class (string)

autocomplete (string)

contenteditable (boolean)

dir (string)

disabled (boolean)

readonly (boolean)

draggable (boolean)

hidden (boolean)

id (string)

name (string)

itemid (string)

itemprop (string)

itemref (string)

itemscope (string)

itemtype (string)

lang (string)

list (string)

max (string)

min (string)

required (boolean)

step (string)

tabindex (string)

title (string)

value (string)

url

accesskey (string)

class (string)

autocomplete (string)

contenteditable (boolean)

dir (string)

disabled (boolean)

readonly (boolean)

draggable (boolean)

hidden (boolean)

id (string)

name (string)

itemid (string)

itemprop (string)

itemref (string)

itemscope (string)

itemtype (string)

lang (string)

list (string)

maxlength (string)

minlength (string)

placeholder (string)

required (boolean)

tabindex (string)

title (string)

value (string)

week

accesskey (string)

class (string)

autocomplete (string)

contenteditable (boolean)

dir (string)

disabled (boolean)

readonly (boolean)

draggable (boolean)

hidden (boolean)

id (string)

name (string)

itemid (string)

itemprop (string)

itemref (string)

itemscope (string)

itemtype (string)

lang (string)

list (string)

max (string)

min (string)

required (boolean)

step (string)

tabindex (string)

title (string)

value (string)