HTML and CSS Reference
In-Depth Information
width=" number of pixels
number of pixels "
Not in HTML 4.01 . Specifies the width of the bottom image when the input type is set
to image .
input type= " button "
Creates a customizable “push” button. Customizable buttons have no specific behavior but
can be used to trigger functions created with JavaScript controls. Data from type="button"
controls is never sent with a form when a form is submitted to the server; these button controls
are for use only with script programs on the browser:
< input type="button" value="Push Me!" >
HTML5 Global Attributes
autofocus ( autofocus="autofocus" in XHTML) ( Not in HTML 4.01 )
disabled ( disabled="disabled" in XHTML)
form=" id of the form owner " ( Not in HTML 4.01 )
name=" text "
value=" text "
input type= " checkbox "
Creates a checkbox input element within a form . Checkboxes are like on/off switches that the
user can toggle. Several checkboxes in a group may be selected at one time. When a form is
submitted, only the “on” checkboxes submit values to the server:
<p>Which of the following operating systems have you
<li> <input type="checkbox" name="os" value="Win" > Windows
<li> <input type="checkbox" name="os" value="Linux"
checked> Linux</li>
<li> <input type="checkbox" name="os" value="OSX"
checked> Macintosh OSX</li>
Search WWH ::

Custom Search