posted on Sunday, May 16, 2010
HTML5 has number of new elements and attributes.
New DOCTYPE declaration is <!DOCTYPE html> and is case-insensitive in the HTML syntax.
HTML5 document encoding:
<meta charset="UTF-8"> could be used to specify encoding instead of <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> which is still allowed.
Some of them are very interesting, like <video> or <audio> tags.
article - represents an independent piece of content of a document, such as a blog entry or newspaper article
aside - represents a piece of content that is only slightly related to the rest of the page
audio and video - for multimedia content
canvas - is used for rendering dynamic bitmap graphics on the fly, such as graphs or games
command - represents a command the user can invoke
datalist - together with the a new list attribute for input can be used to make comboboxes:
details - represents additional information or controls which the user can obtain on demand
embed - is used for plugin content
figure - can be used to associate a caption together with some embedded content, such as a graphic or video
footer - represents a footer for a section and can contain information about the author, copyright information, et cetera
header - represents a group of introductory or navigational aids
hgroup - represents the header of a section
keygen - represents control for key pair generation
mark - represents a run of marked text
meter - represents a measurement, such as disk usage
nav - represents a section of the document intended for navigation
output - represents some type of output, such as from a calculation done through scripting
progress - represents a completion of a task, such as downloading or when performing a series of expensive operations
ruby, rt and rp - allow for marking up ruby annotations
section - represents a generic document or application section. It can be used together with the h1, h2, h3, h4, h5, and h6 elements to indicate the document structure
time - represents a date and/or time