One small page that uses every element of this section. Turn on Show tags and point at any part of
the page: a label tells you which element draws it. Click to jump to that element's details below.
SectionsWritten for this site
Every element of this section is in the page above. Point at one to find it, click it to read its details.
Tags with a dashed border are not drawn on the page: look for them in the code below.
<body> <header class="site"> <h1>The Daily Loaf</h1> <nav aria-label="Main"> <a href="#recipe">Recipes</a> <a href="#popular">Popular</a> <a href="#contact">Contact</a> </nav> </header> <div class="layout"> <article id="recipe"> <hgroup> <h2>Sourdough for beginners</h2> <p>A slow bread that rewards patience.</p> </hgroup> <section> <h3>Day one</h3> <p>Feed your starter with flour and water.</p> <h4>Morning</h4> <p>Mix, then let the dough rest.</p> <h5>If your kitchen is cold</h5> <p>Leave it near the oven.</p> <h6>One last tip</h6> <p>Be patient: six heading levels, from h1 to h6, make the outline.</p> </section> <footer> <p>Posted by Ana, 3 comments</p> </footer> </article> <aside id="popular"> <h2>Popular this week</h2> <p>Banana bread</p> <p>Focaccia</p> <p>Cinnamon rolls</p> </aside> </div> <footer class="site" id="contact"> <address>Questions? Write to <a href="mailto:hello@example.com">hello@example.com</a></address> </footer></body>
MDN The <body>HTML element represents the content of an HTML document. There can be only one <body> element in a document.
Live previewExample from MDN
<html lang="en"> <head> <title>Document title</title> </head> <body> <p> The <code><body></code> HTML element represents the content of an HTML document. There can be only one <code><body></code> element in a document. </p> </body></html>
WHATWG Self-contained syndicatable or reusable composition
MDN The <article>HTML element represents a self-contained composition in a document, page, application, or site, which is intended to be independently distributable or reusable (e.g., in syndication). Examples include: a forum post, a magazine or newspaper article, or a blog entry, a product card, a user-submitted comment, an interactive widget or gadget, or any other independent item of content.
Live previewExample from MDN
<article class="forecast"> <h1>Weather forecast for Seattle</h1> <article class="day-forecast"> <h2>03 March 2018</h2> <p>Rain.</p> </article> <article class="day-forecast"> <h2>04 March 2018</h2> <p>Periods of rain.</p> </article> <article class="day-forecast"> <h2>05 March 2018</h2> <p>Heavy rain.</p> </article></article>
MDN The <section>HTML element represents a generic standalone section of a document, which doesn't have a more specific semantic element to represent it. Sections should always have a heading, with very few exceptions.
Live previewExample from MDN
<h1>Choosing an Apple</h1><section> <h2>Introduction</h2> <p> This document provides a guide to help with the important task of choosing the correct Apple. </p></section><section> <h2>Criteria</h2> <p> There are many different criteria to be considered when choosing an Apple — size, color, firmness, sweetness, tartness... </p></section>
MDN The <nav>HTML element represents a section of a page whose purpose is to provide navigation links, either within the current document or to other documents. Common examples of navigation sections are menus, tables of contents, and indexes.
Live previewExample from MDN
<nav class="crumbs"> <ol> <li class="crumb"><a href="#">Bikes</a></li> <li class="crumb"><a href="#">BMX</a></li> <li class="crumb">Jump Bike 3000</li> </ol></nav><h1>Jump Bike 3000</h1><p> This BMX bike is a solid step into the pro world. It looks as legit as it rides and is built to polish your skills.</p>
MDN The <aside>HTML element represents a portion of a document whose content is only indirectly related to the document's main content. Asides are frequently presented as sidebars or call-out boxes.
Live previewExample from MDN
<p> Salamanders are a group of amphibians with a lizard-like appearance, including short legs and a tail in both larval and adult forms.</p><aside> <p>The Rough-skinned Newt defends itself with a deadly neurotoxin.</p></aside><p> Several species of salamander inhabit the temperate rainforest of the Pacific Northwest, including the Ensatina, the Northwestern Salamander and the Rough-skinned Newt. Most salamanders are nocturnal, and hunt for insects, worms and other small creatures.</p>
MDN The <h1> to <h6>HTML elements represent six levels of section headings. <h1> is the highest section level and <h6> is the lowest. By default, all heading elements create a block-level box in the layout, starting on a new line and taking up the full width available in their containing block.
MDN The <hgroup>HTML element represents a heading and related content. It groups a single <h1>–<h6> element with one or more <p>.
Live previewExample from MDN
<hgroup> <h1>Frankenstein</h1> <p>Or: The Modern Prometheus</p></hgroup><p> Victor Frankenstein, a Swiss scientist, has a great ambition: to create intelligent life. But when his creature first stirs, he realizes he has made a monster. A monster which, abandoned by his master and shunned by everyone who sees it, follows Dr Frankenstein to the very ends of the earth.</p>
WHATWG Introductory or navigational aids for a page or section
MDN The <header>HTML element represents introductory content, typically a group of introductory or navigational aids. It may contain some heading elements but also a logo, a search form, an author name, and other elements.
Live previewExample from MDN
<header> <a class="logo" href="#">Cute Puppies Express!</a></header><article> <header> <h1>Beagles</h1> <time>08.12.2014</time> </header> <p> I love beagles <em>so</em> much! Like, really, a lot. They're adorable and their ears are so, so snugly soft! </p></article>
MDN The <footer>HTML element represents a footer for its nearest ancestor sectioning content or sectioning root element. A <footer> typically contains information about the author of the section, copyright data or links to related documents.
WHATWG Contact information for a page or article element
MDN The <address>HTML element indicates that the enclosed HTML provides contact information for a person or people, or for an organization.
Live previewExample from MDN
<p>Contact the author of this page:</p><address> <a href="mailto:jim@example.com">jim@example.com</a><br /> <a href="tel:+14155550132">+1 (415) 555‑0132</a></address>