Hello all,
Semantic elements clearly defines its content. It means that elements which are recognize by their name in html for example <hedaer > , <nav> , <footer>. You can say it helps understand what is happening on the page.
In earlier we used like <div> like
<div class="nav"> </div>
and now
<nav> </nav>
So, its makes easier for you to work with your code and one more important advantage is semantic elements are more seo friendly compare to non-semantic elements.
Below is list of some semantic element -
<article>
<aside>
<details>
<figcaption>
<figure>
<footer>
<header>
<main>
<mark>
<nav>
<section>
<summary>
<time>
0 Comment(s)