@ChristBM
Posted
I will give you a couple of code examples to help you understand what is semantic HTML and what is not.
<body>
<header>
<h1></h1>
<nav>
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</nav>
</header>
<main>
<section>
<h2></h2>
<h3></h3>
<article></article>
<article></article>
<article></article>
</section>
<section>
<form action="">
<label for="">
<input type="text" name="" id="">
</label>
<label for="">
<input type="text" name="" id="">
</label>
<label for="">
<input type="text" name="" id="">
</label>
</form>
</section>
</main>
<aside>
<section>
<h2></h2>
<p></p>
<button></button>
</section>
</aside>
<footer>
<section>
<p><span></span></p>
</section>
</footer>
On the other hand, I can do the same thing just using the <div> tag. What do you think is better for the code reader? Read only ''divs'' or that the tags have some meaning?
Marked as helpful
@Sneflenie
Posted
@ChristBM thanks again!