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
Try updating the below code
using proper semantic html tags
according to best practices.
As we can see, the revised code
provided as solution is now clear
and easy to read.