What is Semantic HTML?
A semantic element describes its meaning to the browser and the developer.
Non-semantic: <div>, <span>...
Semantic: <nav>, <form>, <article>...
Let's take a look at some different examples and why they are important to use on your website.![Thread 🧵](https://abs.twimg.com/emoji/v2/72x72/1f9f5.png)
A semantic element describes its meaning to the browser and the developer.
Non-semantic: <div>, <span>...
Semantic: <nav>, <form>, <article>...
Let's take a look at some different examples and why they are important to use on your website.
![Thread 🧵](https://abs.twimg.com/emoji/v2/72x72/1f9f5.png)
![Rückhand Zeigefinger nach unten (heller Hautton) 👇🏻](https://abs.twimg.com/emoji/v2/72x72/1f447-1f3fb.png)
![Hochspannungszeichen ⚡](https://abs.twimg.com/emoji/v2/72x72/26a1.png)
![Fettes weißes Häkchen ✅](https://abs.twimg.com/emoji/v2/72x72/2705.png)
![Fettes weißes Häkchen ✅](https://abs.twimg.com/emoji/v2/72x72/2705.png)
![Rückhand Zeigefinger nach unten (heller Hautton) 👇🏻](https://abs.twimg.com/emoji/v2/72x72/1f447-1f3fb.png)
![Fettes weißes Häkchen ✅](https://abs.twimg.com/emoji/v2/72x72/2705.png)
![Fettes weißes Häkchen ✅](https://abs.twimg.com/emoji/v2/72x72/2705.png)
Let's talk about the main ones you should start using today!
![Rückhand Zeigefinger nach unten (heller Hautton) 👇🏻](https://abs.twimg.com/emoji/v2/72x72/1f447-1f3fb.png)
<nav>
A section that contains navigation links, you can have more than one menu, but they can't be nested.
<header>
This should contain the logo, title, and navigation (<nav>), it's usually used at the top of the page or section.
A section that contains navigation links, you can have more than one menu, but they can't be nested.
<header>
This should contain the logo, title, and navigation (<nav>), it's usually used at the top of the page or section.
![Rückhand Zeigefinger nach unten (heller Hautton) 👇🏻](https://abs.twimg.com/emoji/v2/72x72/1f447-1f3fb.png)
<footer>
The page footer, usually contains copyright info or contact links.
<main>
This is where the most important page of your website goes. Only one per document.
<section>
This separates different sections of your website, like projects, skills, contact...
The page footer, usually contains copyright info or contact links.
<main>
This is where the most important page of your website goes. Only one per document.
<section>
This separates different sections of your website, like projects, skills, contact...
![Rückhand Zeigefinger nach unten (heller Hautton) 👇🏻](https://abs.twimg.com/emoji/v2/72x72/1f447-1f3fb.png)
<article>
A piece of self-contained content. It can be used for articles, but also for comments, widgets...
<aside>
A section related to the main element, but independent, like an explanation box. It can also be used for a sidebar.
A piece of self-contained content. It can be used for articles, but also for comments, widgets...
<aside>
A section related to the main element, but independent, like an explanation box. It can also be used for a sidebar.
![Rückhand Zeigefinger nach unten (heller Hautton) 👇🏻](https://abs.twimg.com/emoji/v2/72x72/1f447-1f3fb.png)
<h1> to <h6>
Use h elements to define headings, only one h1 per page. This helps Google know what's the most important thing on your page.
Use h elements to define headings, only one h1 per page. This helps Google know what's the most important thing on your page.
![Rückhand Zeigefinger nach unten (heller Hautton) 👇🏻](https://abs.twimg.com/emoji/v2/72x72/1f447-1f3fb.png)
These are the main ones I use and I recommend!
Any that I missed and you would like to add? Comment below!
Would you like a more detailed explanation in an article, with more examples? Tell me what you want to read about
Any that I missed and you would like to add? Comment below!
Would you like a more detailed explanation in an article, with more examples? Tell me what you want to read about
![Lächelndes Gesicht mit lächelnden Augen 😊](https://abs.twimg.com/emoji/v2/72x72/1f60a.png)