Footer tag HTML
Please note, that the content model of footer has now been updated to reflect that of header, so you can have navs & headings in your footers. For more information, please read my updated article The Footer Element Update. and read the tracking note.
For some time now we’ve become accustomed to seeing
at the bottom of web pages but with the introduction of HTML 5 it’s time to say goodbye. With the addition of the new element we now have more scope and flexibility.
According to the spec
The footer element represents a footer for its nearest ancestor sectioning content or sectioning root element. A footer typically contains information about its section such as who wrote it, links to related documents, copyright data, and the like.
Lets get started
Before we get stuck into dissecting the new element, let’s lay the foundations for the article and cover the basics. As we’ve already mentioned above, most people would have laid out the footer as follows
- to top
However with the creation of HTML 5 this is no longer the case. As you may already know, there is now no longer the need for the element for many elements. In our case, when referring to the footer, the appropriate markup would be
As I mentioned in the first paragraph, originally the element was only utilised once within our pages but with the introduction of the new element, this no longer needs to be the case. The element can now be used multiple times and to display all the extra information.
Using the footer element
An important point to note is that you are not restricted to use one element per site, you can use multiple footers, each of which will then become the for that section of the document. You could therefore have
Section content appears here. Footer information for section.
Article content appears here. Footer information for article.
To see an example of the within an article/section look no further than this very page. Scroll down beyond the article and you will notice the light grey text section, which falls directly after the “further reading”. This grey text section which gives information about trackbacks, responses, tags and categories is infact using the footer element.
We’ve already outlined what the new footer can look like .
I was initially thrown off-course by the presentational name of the element; my use here isn’t at the bottom of the page, or even at the bottom of the article, but it certainly seems to fit the bill – it’s information about its section, containing author name, links to related documents (comments) and the like. There’s no reason that you can’t have more than one footer on page; the spec’s description says “the footer element represents a footer for the section it applies to” and a page may have any number of sections. The spec also says “Footers don’t necessarily have to appear at the end of a section, though they usually do.”
Bruce Lawson –
The footer element offers the chance to define web pages giving them the correct semantic mark-up that they deserve but it’s vital to use these new found tags as they were intended for. Let’s not get carried away and misuse this tag like we have done with tables and divs.
You might also like
TOUGH-GRID 750lb Paracord / Parachute Cord - This Is The Actual "Mil Spec" Type IV 750lb Paracord Used & Certified by the US Military (MIl-C-5040-H). It Is The Best Paracord Available. See Our Many Expert Reviews. 50Ft. - Black
Ronix 2015 R6 80 80 FT 6 Section Mainline (Neon Yellow) Wakeboard Rope
Watch Me Grow - Memories and Milestones Keepsake - 4 Year Baby, Child & Parent Kit
Baby Product (Footer Family)
Professor Teaches Excel and Word 2010
Software (Individual Software)
Microsoft Word 2013 Quick Reference Guide: Important Paragraph & Text Formatting Techniques (204)
CE (EC Technologies)