There are so many HTML tags
that make no visible change
on the page like main
,
aside
, footer
, <span>
among others.
Why don't we simply use
a single element like div
for all purposes?
Imagine the simplicity.
Wait, don't imagine, let us show you:
In the previous code, we
utilized the <div>
element
to create different sections.
However, it becomes evident
that relying solely on <div>
makes the code difficult to
read and to style.
Best practice
Here's a revised version of the code using proper semantic HTML tags according to best practices.
As we can see, the revised code
provided is now clear
and easy to read.