Sample Web Page Using HTML5 Semantic Elements <header>

Example (<section>)

What Is This?! (<article>)

This web page is a demonstration of what are called the major semantic elements of HTML5.  The elements (HTML tags) name the various sections of a page logically (like <header> and <article>).  You can then define the characteristics of each page section (the HTML tags or elements) in a CSS file, rather than the old way of declaring CSS IDs or Classes for DIVs or other elements.  It is simply a more logical way to divide up a page and specify sectional characteristics.

For example, on this page the <footer> text is smaller than the rest of the page and centered.  Here is the CSS definition and HTML: 

	footer   { color: white; background-color: black; }
	footer p { margin: 0; padding: 5px; font-size: smaller; text-align: center; }
	
	<footer>
	<p>&copy; 2018 by me. (Not really, this is an example!) &lt;footer&gt;</p>
	</footer>

Design (<article>)

This page is divided into the following elements (tags of these names):  header; nav(igation); section(s) - there are 2:  Example and Reference; article(s) - there are two in this section and one in the following section; and footer.

Reference (<section>)

Style Sheet Used For This Example (<article>)

View the CSS for this file in a separate window.