liveBook · Manning

Navigation

As explained in Web Design Playground, Second Edition

A navigation section is a page section containing controls or links for moving among pages or sections of a site.

A navigation section uses the HTML5 nav element to group an unordered list of links to other gallery pages. It is the page’s friendly signpost: click a link, and off you go. section 15.6

A gallery navigation can include:

  • A nav element containing a ul list. section 15.6
  • List items containing links to Gallery 1, Gallery 2, Gallery 3, and Gallery 4. section 15.6
  • Flexbox styling that centers the navigation and lays its links across the page. section 15.6
  • A current-page span that highlights the page being viewed, plus hover styling for links. section 15.6

Gallery navigation

<nav>\n <ul>\n <li><a href="gallery1.html">Gallery 1</a></li>\n <li><a href="gallery2.html">Gallery 2</a></li>\n <li><a href="gallery3.html">Gallery 3</a></li>\n <li><a href="gallery4.html">Gallery 4</a></li>\n </ul>\n</nav> section 15.6

<nav>
    <ul>
        <li><a href="gallery1.html">Gallery 1</a></li>
        <li><a href="gallery2.html">Gallery 2</a></li>
        <li><a href="gallery3.html">Gallery 3</a></li>
        <li><a href="gallery4.html">Gallery 4</a></li>
    </ul>
</nav>

Browse the complete navigation markup, including its list and four gallery-page links. section 15.6

How Web Design Playground, Second Edition covers it

How deep it goes
Defines the HTML structure and demonstrates Flexbox, current-page, and hover styling without exploring advanced navigation behavior.
Examples
Uses four gallery links and highlights Gallery 1 as the current page.
What it assumes
Assumes familiarity with basic HTML structure and CSS, while applying previously learned Flexbox layout.
What you can do after
Build a gallery navigation section with nav, ul, li, and a elements, then style its layout and states.
How it connects
Connects HTML5 semantic elements, unordered lists, links, CSS, and Flexbox.

Also explained in

Compare how 4 books explain navigation →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Web Design Playground, Second Edition. The section links point to the parts of the book it draws on.