HTML and CSS Reference
In-Depth Information
form=" id of form owner "
list=" id of datalist "
maxlength=" number "
name=" name "
pattern=" JavaScript regular expression "
placeholder=" text "
readonly ( readonly="readonly" in XHTML)
required ( required="required" in XHTML)
size=" number "
value=" text "
input type= " text "
Creates a text input element. This is the default input type, as well as one of the most useful
and common. Text provided for the value attribute will appear in the text control when the
form loads:
<input type="text" name="username" size="15"
maxlength="50" value="enter your name" >
HTML5 Global Attributes
autocomplete="on|off" ( Not in HTML 4.01 )
autofocus ( autofocus="autofocus" in XHTML) ( Not in HTML 4.01 )
disabled ( disabled="disabled" in XHTML)
dirname=" text string " ( Not in HTML 4.01 )
form=" id of form owner " ( Not in HTML 4.01 )
inputmode="verbatim|latin|latin-name|latin-prose|full-width-lat-
in|kana|katakana|numeric|tel|email|url" ( Not in HTML 4.01 )
list=" id of datalist " ( Not in HTML 4.01 )
Search WWH ::




Custom Search