HTML and CSS Reference
In-Depth Information
NEW TYPES OF INPUT
One of the quirks of HTML forms is that one ingredi-
ent—the vaguely named <input> element—is used to
create a variety of controls, from checkboxes to text
boxes to buttons. The type attribute is the master switch
that determines what each <input> element really is.
If a browser runs into an <input> element with a type
that it doesn't recognize, the browser treats it like an or-
dinary text box. That means these three elements get ex-
actly the same treatment in every browser:
<input type="text">
<input type="super-strange-wonky-input-type">
<input>
Search WWH ::




Custom Search