HTML 5
What is DOM
When your browser renders a web page, it constructs a Document Object Model (DOM), a collection of objects that represent the HTML elements on the page. Every element — every , every
< input type="search" > for search boxes :
< input type="number" > for spinboxes
< input type="range" > for sliders
< input type="color" > for color pickers
< input type="tel" > for telephone numbers
< input type="url" > for web addresses
< input type="email "> for email addresses
< input type="date" > for calendar date pickers
< input type="month" > for months
< input type="week" > for weeks
< input type="time" > for timestamps
< input type="datetime" > for precise, absolute date+time stamps
< input type="datetime-local" > for local dates and times
, every — is represented in the DOM by a different object. (There are also global objects, like window and document, that aren’t tied to specific elements.)
HTML5 defines over a dozen new input types that you can use in your forms.
< input type="search" > for search boxes :
< input type="number" > for spinboxes
< input type="range" > for sliders
< input type="color" > for color pickers
< input type="tel" > for telephone numbers
< input type="url" > for web addresses
< input type="email "> for email addresses
< input type="date" > for calendar date pickers
< input type="month" > for months
< input type="week" > for weeks
< input type="time" > for timestamps
< input type="datetime" > for precise, absolute date+time stamps
< input type="datetime-local" > for local dates and times
Comments