Semantic HTML
Write clearer, more accessible HTML using Semantic HTML tags.
StartKey Concepts
Review core concepts you need to learn to master this subject
Semantic HTML
Element Placement
Embedding media
<figure>
and <figcaption>
<section>
and <article>
<aside>
Aside Element
Semantic HTML
Semantic HTML
<!--Non Semantic HTML-->
<div id="footer">
<p>this is a footer</p>
</div>
<!--Semantic HTML-->
<footer>
<p>this is a footer</p>
</footer>
Semantic HTML introduces meaning to the code we write. Before Semantic HTML the elements didn’t have any meaning as to what it does or what content goes in it. An element such as <div>
was used as a general-purpose element to create things from headers to footers to articles. With Semantic HTML we were introduced to elements that tell developers and browsers exactly what it does and what content should go in it.
- 1When building web pages, we use a combination of non-semantic HTML and Semantic HTML. The word semantic means “relating to meaning,” so semantic elements provide information about the content bet…
- 2Let’s take a look at some semantic elements that assist in the structure of a web page. A is a container usually for either navigational links or introductory content containing to headings. …
- 3Two more structural elements are and . These elements along with and help describe where an element is located based on conventional web development standards. The element is used to enca…
- 4Now that we covered the body of Semantic HTML, let’s focus on what can go in the body. The two elements we’re going to focus on now are and . defines elements in a document, such as chapters…
- 5The element is used to mark additional information that can enhance another element but isn’t required in order to understand the main content. This element can be used alongside other elements s…
- 6With , we learned that we can put additional information next to a main piece of content, but what if we wanted to add an image or illustration? That is where and come in. is an element use…
- 7Now that we learned about text-based content, let us dig into ! Surely everyone needs —how else would you listen to your Korean hip hop? The element is used to embed audio content into a doc…
- 8As demonstrated in the previous exercise, media content can be a useful addition to a website. By using a element, we can add videos to our website. The element makes it clear that a developer …
What you'll create
Portfolio projects that showcase your new skills
How you'll master it
Stress-test your knowledge with quizzes that help commit syntax to memory