Timeline for Should menu titles (h1, h2, h3...) be inside or outside the <nav> tag?
Current License: CC BY-SA 2.5
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 20, 2010 at 20:02 | comment | added | Marc-François | Yes, you can use h tags for menus for example. I just didn't know if the h1 had to be inside or outside. See the link given by bogeymin: w3.org/TR/html5/sections.html#the-nav-element | |
Dec 20, 2010 at 15:51 | comment | added | Piers Karsenbarg | Interesting. I still wouldn't advise putting the h1 tag in there though as it's the main heading for the page. Maybe h2. | |
Dec 20, 2010 at 14:48 | comment | added | Lèse majesté |
That's partly true, and prior to the introduction of nav , I would never use a heading tag for navigation menus. However, navigation menus can contain headings, which the h tags are the only semantically correct way of representing. Putting it inside of nav lets the document parser know that it's not part of the official content.
|
|
Dec 20, 2010 at 12:21 | history | answered | Piers Karsenbarg | CC BY-SA 2.5 |