HTML and CSS Reference
In-Depth Information
HTML5 makes type officially optional, but still validates older documents that do
include the attribute. This makes sense, as there is really only one standard scripting
language and only one styling language for the Web in use today.
See Also
The W3C Working Draft discussion on differences between HTML4 and HTML5
includes changed attributes at http://www.w3.org/TR/html5-diff/#changed-attributes .
1.5 Adding Document Structure with HTML5's New Elements
Problem
You want to define your document structure with the new header , footer , nav , aside ,
section , and article elements.
Solution
Examine your content and document structure to determine which of the new elements
work with your page:
header
Is used to contain the headline(s) for a page and/or section . It can also contain
supplemental information such as logos and navigational aids.
footer
Contains information about a page and/or section , such as who wrote it, links to
related information, and copyright statements.
nav
Contains the major navigation links for a page and, while not a requirement, is
often contained by header .
aside
Contains information that is related to the surrounding content but also exists
independently , such as a sidebar or pull-quotes.
section
Is the most generic of the new structural elements, containing content that can be
grouped thematically or is related.
article
Is used for self-contained content that could be consumed independently of the
page as a whole, such as a blog entry.
A simple blog structure, with a headline, navigation, a sidebar, blog posts, and a footer,
could be marked up in HTML5 as:
<header>
<h1><abbr title="Hypertext Markup Language">HTML</abbr>5, for Fun &amp;
 
Search WWH ::




Custom Search