Saturday, June 6, 2015

HTML5 Sectioning Elements

Some of the new structural elements introduced by HTML5: section, article, etc.

1. Use <H1>...<H6> for the headings as you have done before

2. Using headings and new sectioning elements 


The <section>, <article>, <nav> and <aside> elements are called "sectioning elements". They cut a document into slices we call "sections".
The HTML5 specification says that "each sectioning element potentially has a heading and has also an outline associated".
<h1>...<h6> are called headings, and define the header of a section (whether explicitly marked up using sectioning content elements, or implied by the heading content itself).

3. The <header> element is just a container. It is not taken into account for defining new sections of a document nor does it affect the hierarchy levels. 


No comments:

Post a Comment