Have you heard of SEMANTIC HTML?
(I will teach you all about it here on my page)
Semantic HTML is one of the most important topics in frontend development. Every professional web developer uses it because it improves:
Accessibility ♿
SEO 🔍
Code readability 📖
Maintainability 🔧
Browser understanding 🌐
Screen reader support 🎧
@XDevelopers@html5@SoftwareProduc3
Why Semantic HTML Was Created
Before HTML5, developers wrote:
<div id="header">
<div id="nav">
<div id="content">
<div id="footer">
Problems:
Difficult to understand
Poor accessibility
Poor SEO
Search engines couldn't understand structure
HTML5 introduced semantic tags:
<header>
<nav>
<main>
<footer>
Now both humans and machines understand the page.
#TechTwitter #BuildInPublic #CodeHumor
Have you heard of SEMANTIC HTML?
(I will teach you all about it here on my page)
Semantic HTML is one of the most important topics in frontend development. Every professional web developer uses it because it improves:
Accessibility ♿
SEO 🔍
Code readability 📖
Maintainability 🔧
Browser understanding 🌐
Screen reader support 🎧
@XDevelopers@html5@SoftwareProduc3
Meaning of "Semantic"
Semantic = Meaning
A semantic element tells:
What the content is
Why it exists
How it relates to other content
Examples:
<header>
<footer>
<nav>
<article>
<section>
<main>
<aside>
Each tag has a specific meaning.
@XDevelopers@html5@react@SoftwareProduc3
What is Semantic HTML?
Semantic HTML means using HTML tags that describe the meaning and purpose of the content.
Instead of telling the browser:
<div>This is navigation</div>
You tell the browser:
<nav>
Navigation Links
</nav>
The second example clearly explains the purpose of the content.
Why Semantic HTML Was Created
Before HTML5, developers wrote:
<div id="header">
<div id="nav">
<div id="content">
<div id="footer">
Problems:
Difficult to understand
Poor accessibility
Poor SEO
Search engines couldn't understand structure
HTML5 introduced semantic tags:
<header>
<nav>
<main>
<footer>
Now both humans and machines understand the page.
#TechTwitter #BuildInPublic #CodeHumor
Meaning of "Semantic"
Semantic = Meaning
A semantic element tells:
What the content is
Why it exists
How it relates to other content
Examples:
<header>
<footer>
<nav>
<article>
<section>
<main>
<aside>
Each tag has a specific meaning.
@XDevelopers@html5@react@SoftwareProduc3
What is Semantic HTML?
Semantic HTML means using HTML tags that describe the meaning and purpose of the content.
Instead of telling the browser:
<div>This is navigation</div>
You tell the browser:
<nav>
Navigation Links
</nav>
The second example clearly explains the purpose of the content.