In HTML5 <footer> tag of the whole page, have to be direct child of <body>,... of can reside in a big div include all body contents?
In HTML5 <footer> tag of the whole page, have to be direct child of <body>,... of can reside in a big div include all body contents?
As far as I can tell, the footer element does not have to be a direct child element of the head, after validating an example such as this:
it's prefectly valid. Also, after consulting numerous pieces of documentation, it appears to be perfectly fine to have it within a div.HTML Code:<!DOCTYPE html> <html> <head> <title>test</title> </head> <body> <header> <h1>test</h1> <p>test</p> </header> <article> <p>lorum</p> <p>ipsum</p> </article> <div> <footer> © 2012 me </footer> </div> </body> </html>
"Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program." - Linus Torvalds
Anime Views Forums
Bernie
Correct.
Also, you are not limited to one<footer>
.
Individual sections, articles, etc. may have their own footer (and header as well).
Bookmarks