Semantic Elements
In addition to the individual HTML elements that display content, such as <p>
, <h1>
, etc., there are HTML elements that are used to describe the content contained within a larger section of HTML elements. These elements are called semantic elements, because they give meaning to group of descendant elements contained within them.
Some of the most important semantic elements are those that allow us to divide our page into sections.

The image above shows a common layout of a web page. We can use specific HTML elements for each of these sections.
We can use a
<header>
tag for the header contentWe can use a
<footer>
tag for the footer contentWe can use a
<main>
tag for the main content of the pageSidebar content can go in an
<aside>
tagIf there is a list of links, such as in the
<header>
, they can go in a<nav>
tag
Additionally, we can use <article>
and <section>
to divide these sections into more sections.
Last updated
Was this helpful?