How to use the footer element in HTML5

XHTML users are used to work with divs when creating footers. HTML5 nevertheless brings this feature to an end by means of introducing the so-called <footer> tag. The way of applying the footer tag in HTML5 nonetheless is similar to the way a footer was created in XHTML, the only difference is the replacement of div by footer tag. In the below example you can find both the XHTML application and the new footer element HTML5 solution.

XHTML FOOTER

<div id="footer">
<!-- FOOTER CONTENT -->
<div>



HTML5 FOOTER

<footer>
<!-- FOOTER CONTENT -->
</footer>


Was this useful?