The 24 Content Forms of HTML
A Content Form accepts textual and non-textual data within a Content Block
Select Form
A Select Form accepts text from multiple option items
The syntax is a select
element with the following contents:
-
Zero or one count for each of the following attributes:
-
Zero or one count for each global attribute
-
One first-child
option
element as a placeholder label if theselect
element has the followings:-
value
attribute with empty string value -
size
attribute with one as value -
required
boolean attribute
-
-
Zero or more counts for each of the following elements:
<select></select>
Textarea Form
A Textarea Form accepts multi-line text
The syntax is a textarea
element with the following contents:
-
Zero or one count for each of the following attributes:
-
Zero or one count for each Global Attribute
-
A Text Content as the default value
<textarea></textarea>
Sensitive Form
A Sensitive Form accepts text via an obscured medium.
The syntax is a void input
element with the following attributes:
-
One
type
attribute with thepassword
value -
Zero or one count for each of the following attributes:
-
Zero or one count for each Global Attribute
<input type="password">
Search Form
A Search Form accept search terms
The syntax is a void input
element with the following attributes:
-
One
type
attribute with thesearch
value -
Zero or one count for each of the following attributes:
-
Zero or one count for each Global Attribute
<input type="search">
Color Form
A Color Form accepts a hex color via a picker
The syntax is a void input
element with the following attributes:
-
One
type
attribute with thecolor
value -
Zero or one count for each of the following attributes:
-
Zero or one count for each Global Attribute
<input type="color">
URL Form
A URL Form accepts an absolute URL address
The syntax is a void input
element with the following attributes:
-
One
type
attribute with theurl
value -
Zero or one count for each of the following attributes:
-
Zero or one count for each Global Attribute
<input type="url">
Email Form
An Email Form accepts an Email Address
The syntax is a void input
element with the following attributes:
-
One
type
attribute with theemail
value -
Zero or one count for each of the following attributes:
-
Zero or one count for each Global Attribute
<input type="email">
File Form
A File Form accepts non-textual information via an upload button
The syntax is a void input
element with the following attributes:
-
One
type
attribute with thefile
value -
Zero or one count for each of the following attributes:
-
Zero or one count for each Global Attribute
<input type="file">
Telephone Form
A Telephone Form accepts a telephone number
The syntax is a void input
element with the following attributes:
-
One
type
attribute with thetel
value -
Zero or one count for each of the following attributes:
-
Zero or one count for each Global Attribute
<input type="tel">
Range Form
A Range Form accepts a number within a range
The syntax is a void input
element with the following attributes:
-
One
type
attribute with therange
value -
Zero or one count for each of the following attributes:
-
Zero or one count for each Global Attribute
<input type="range">
Number Form
A Number Form accepts a number value
The syntax is a void input
element with the following attributes:
-
One
type
attribute with thenumber
value -
Zero or one count for each of the following attributes:
-
Zero or one count for each Global Attribute
<input type="number">
Datetime Form
A Datetime Form accept year, month, day, hour, minute, second, and millisecond values via a picker
The syntax is a void input
element with the following attributes:
-
One
type
attribute with thedatetime-local
value -
Zero or one count for each of the following attributes:
autocomplete
disabled
form
list
max
min
name
readonly
required
step
value
-
Zero or one count for each Global Attribute
<input type="datetime-local">
Date Form
A Date Form accept year, month, and day values via a picker
The syntax is a void input
element with the following attributes:
-
One
type
attribute with thedate
value -
Zero or one count for each of the following attributes:
autocomplete
disabled
form
list
max
min
name
readonly
required
step
value
-
Zero or one count for each Global Attribute
<input type="date">
Month Form
A Month Form accept year and month values via a picker
The syntax is a void input
element with the following attributes:
-
One
type
attribute with themonth
value -
Zero or one count for each of the following attributes:
-
Zero or one count for each Global Attribute
<input type="month">
Week Form
A Week Form accept week and year values via a picker
The syntax is a void input
element with the following attributes:
-
One
type
attribute with theweek
value -
Zero or one count for each of the following attributes:
-
Zero or one count for each Global Attribute
<input type="week">
Time Form
A Time Form accept hour, minute, second, and millisecond values via a picker
The syntax is a void input
element with the following attributes:
-
One
type
attribute with thetime
value -
Zero or one count for each of the following attributes:
-
Zero or one count for each Global Attribute
<input type="time">
Text Form
A Text Form accepts plain text
The syntax is a void input
element with the following attributes:
-
One
type
attribute with thetext
value -
Zero or one count for each of the following attributes:
-
Zero or one count for each Global Attribute
<input type="text">
Hidden Form
An Hidden Form accepts plain text from a program but, not from a user
The syntax is a void input
element with the following attributes:
-
One
type
attribute with thehidden
value -
Zero or one
value
attribute But, it must be omitted if there's a siblingname
attribute with a_charset_
value. -
Zero or one count for each of the following attributes:
-
Zero or one count for each Global Attribute
<input type="hidden">
Radio Form
A Radio Form accepts a value from a set of binary options
The syntax is a void input
element with the following attributes:
-
One
type
attribute with theradio
value -
Zero or one count for each of the following attributes:
-
Zero or one count for each Global Attribute
<input type="radio">
Checkbox Form
A Checkbox Form accepts a value from each item in a set of binary options
The syntax is a void input
element with the following attributes:
-
One
type
attribute with thecheckbox
value -
Zero or one count for each of the following attributes:
-
Zero or one count for each Global Attribute
<input type="checkbox">
Reset Button Form
A Reset Button set associated Content Forms back to their default value.
A Reset Button Form can be a void or non-void content form
Void Reset Button Form
A Void Reset Button Form conveys the button with plain text
The syntax is a void input
element with the following attributes:
-
One
type
attribute with thereset
value -
Zero or one count for each of the following attributes:
-
Zero or one count for each Global Attribute
<button type="reset"></button>
Non-void Reset Button Form
A Non-void Reset Button conveys the button with rich content
The syntax is a button
element with the following contents:
-
One
type
attribute with thereset
value -
Zero or one count for each of the following attributes:
-
Zero or one count for each Global Attribute
-
Zero or more counts for each Text Content, Content Object, Content Form, Content Break, and Content Connotation But exclude the following descendant interactive contents:
-
Any Content with a
tabindex
attribute -
An Hyperlink Connotation with an
href
attribute -
A Raster Image with a
usemap
attribute -
An Audio Media with a
controls
attribute -
A Video Media with a
controls
attribute -
An Embed Medium
-
Each Content Form
-
<button type="reset"></button>
Submit Button Form
A Submit Button initiates the submission of associated Content Forms.
A collection of Content Forms are associated if they have the same parent Form Card or use a form
attribute to the same Form Card
A Submit Button Form can be a void or non-void content form
Void Submit Button Form
A Void Submit Button Form conveys the button with rich content
The syntax is a void input
element with the following attributes:
-
One
type
attribute with thesubmit
value -
Zero or one count for each of the following attributes:
disabled
,value
,name
,dirname
,form
,formaction
,formenctype
,formmethod
,formnovalidate
,formtarget
,popovertarget
, andpopovertargetaction
-
Zero or one count for each Global Attribute
<button type="submit"></button>
Non-void Submit Button Form
A Non-void Submit Button Form conveys the button with rich content
The syntax is a button
element with the following contents:
-
One
type
attribute with thesubmit
value -
Zero or one count for each of the following attributes:
disabled
,value
,name
,form
,formaction
,formenctype
,formmethod
,formnovalidate
,formtarget
,popovertarget
, andpopovertargetaction
-
Zero or one count for each Global Attribute
-
Zero or more counts for each Text Content, Content Object, Content Form, Content Break, and Content Connotation But exclude the following descendant interactive contents:
-
Any Content with a
tabindex
attribute -
An Hyperlink Connotation with an
href
attribute -
A Raster Image with a
usemap
attribute -
An Audio Media with a
controls
attribute -
A Video Media with a
controls
attribute -
An Embed Medium
-
Each Content Form
-
<button type="submit"></button>
Image Button Form
An Image Button initiates the submission of associated Content Forms along with an image coordinate.
A collection of Content Forms are associated if they have the same parent Form Card or use a form
attribute to the same Form Card
The syntax is a void input
element with the following attributes:
-
One
type
attribute with theimage
value -
Zero or one count for each of the following attributes:
alt
disabled
form
formaction
formenctype
formmethod
formnovalidate
formtarget
height
name
popovertarget
popovertargetaction
src
value
width
-
Zero or one count for each Global Attribute
<input type="image">
Custom Button Form
A Custom Button Form initiates a custom command to preferred contents
A Custom Button Form can be a void or non-void content form
Void Custom Button Form
A Void Custom Button Form conveys the button with plain text
The syntax is a void input
element with the following attributes:
-
One
type
attribute with thebutton
value -
Zero or one count for each of the following attributes:
disabled
form
name
popovertarget
popovertargetaction
value
-
Zero or one count for each Global Attribute
<button type="button"></button>
Non-void Custom Button Form
A Non-void Custom Button Form conveys the button with rich content
The syntax is a button
element with the following contents:
-
One
type
attribute with thebutton
value -
Zero or one count for each of the following attributes:
disabled
form
name
popovertarget
popovertargetaction
value
-
Zero or one count for each Global Attribute
-
Zero or more counts for each Text Content, Content Object, Content Form, Content Break, and Content Connotation But exclude the following descendant interactive contents:
-
Any Content with a
tabindex
attribute -
An Hyperlink Connotation with an
href
attribute -
A Raster Image with a
usemap
attribute -
An Audio Media with a
controls
attribute -
A Video Media with a
controls
attribute -
An Embed Medium
-
Each Content Form
-
<button type="button"></button>