# HTML Semantic Elements

# **HTML Semantic Elements**

# **👉** Before Semantic Elements

**👉** Example➖
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1667802312619/c8XyfqtDi.png align="left")

Too many div’s in the above example 

<iframe src="https://giphy.com/embed/bDxWffX7tzWFi" width="452" height="480" frameBorder="0" class="giphy-embed" allowFullScreen></iframe><p><a href="https://giphy.com/gifs/disneyedit-thejunglebookedit-tjbedit-bDxWffX7tzWFi">via GIPHY</a></p>

# **👉** After Semantic Elements

**👉** Example➖
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1667802333919/ahy1goWtf.png align="left")

# **👉** Semantic Elements in HTML

**👉** Many web sites contain HTML code like: <div id="nav"> <div class="header"> <div id="footer"> to indicate navigation, header, and footer.

**👉** In HTML there are some semantic elements that can be used to define different parts of a web page:

🔹< article  >
🔹< aside >
🔹< details >
🔹< figcaption >
🔹< figure >
🔹< footer >
🔹< header >
🔹< main >
🔹< mark >
🔹< nav >
🔹< section >
🔹< summary >

🔹< time >


**👉** Example➖
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1667802371644/vjVftuqVK.png align="left")

-----------------------------------------------------------------------------------------------
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1666336375150/5HqI8zNVh.png align="left")> 
Download our HTML & CSS Visual Treat! ebook Here: 
[Click here](https://codemarch.gumroad.com/l/hxazr)

