Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Magdalena Misiuna
Magdalena Misiuna
14,726 Points

<nav> tag on a static top banner

Would it be semantically correct and accessibility sound if <nav> tag is used in a eBook around a static top banner. It is a decorative element with a <p> number </p>indicating lesson number. There is no links or interactivity. Would <nav> tag still be the best solution in this case scenario?

1 Answer

Steven Parker
Steven Parker
229,644 Points

As stated on the MDN page:

The HTML <nav> element represents a section of a page whose purpose is to provide navigation links ....

So this doesn't sound like an appropriate use for a <nav> element. Perhaps a <header> would be more suitable.

And what's the issue that this is intended to be a "solution" for?