Atlante Avila Atlante Avila - 1 month ago 22
HTML Question

Improving HTML markup

I was given a test and the guy just said:


Improve the html


<div class="header"></div>
<div class="main"></div>
<div class="footer"></div>


All I can think of is to use the HTML5
<header>
,
<section>
and
<footer>
tags, but I got no response and no feedback regarding how he would like it to be improved.

Beyond the tags is there anything else that could be done to improve the HTML?

Answer

The answer is probably supposed to be using the new HTML5 tags:

<header></header>
<main></main>
<footer></footer>

...but it depends on browser support.