HTML and CSS Reference
In-Depth Information
value="
text
"
(
Required
)
input type=
"
image
"
Allows an image to be used as a substitute for a
submit
button. If a
type="image"
button is
pressed, the form is submitted:
<input type="image"
src="graphics/send.gif" alt="Send me"
>
HTML5 Global Attributes
alt="
text
"
autofocus
(
autofocus="autofocus"
in XHTML) (
Not in HTML 4.01
)
disabled
(
disabled="disabled"
in XHTML)
form="
id of form owner
"
(
Not in HTML 4.01
)
formaction="
URL
"
(
Not in HTML 4.01
)
formenctype="
content type
"
(
Not in HTML 4.01
)
formmethod="get|post"
(
Not in HTML 4.01
)
formnovalidate
(
formnovalidate="formnovalidate"
in XHTML) (
Not in HTML 4.01
)
formtarget="
name
"
(
Not in HTML 4.01
)
height="
number of pixels
"
(
Not in HTML 4.01
)
name="
text
"
src="
URL
"
width="
number of pixels
"
(
Not in HTML 4.01
)
input type=
"
month
"
This input type is not valid in HTML 4.01
.
Creates a date input control, such as a pop-up calendar, for specifying a particular month in a
year:
<input type="month"
name="expires" value="2009-09"
>