Semantic HTML helps express the meaning or purpose of the content in a webpage:
Benefits for the developer:
Semantic HTML makes the developer's intentions more clear as to what the developer is trying to accomplish.
Benefits for the user:
More accurate web searches via better SEO (search engine optimization).
Improves accessibility for the vision impaired because screen readers can do their job better.
Pair up and research these semantic tags:
<section>
<article>
<aside>
<figure>
<footer>
<header>
<main>
<nav>
We'll discuss your findings in 5 minutes.
Discuss
What meaning does each semantic provide?
Essential Questions
Explain what semantic HTML is and the benefits it provides.
What are attributes and what are they used for?
It is important to properly __________ nested elements to make the markup more readable and less prone to errors.
Practice Exercise / Lab
Create a new index.html file and copy the HTML below into it. Refactor the HTML code so it uses semantic HTML tags instead of non-semantic tags. Use Codecademy's tutorial as a reference.