Skip to content
Justice Tech School

Lists as Navigation

Menus are lists of links. Wrap a ul in nav, remove markers and use flex to put items in a row. This is the standard accessible navigation pattern.

Example
<style>
  nav ul { display: flex; gap: 16px; list-style: none; padding: 0 }
  nav a { text-decoration: none; color: #5eead4 }
</style>
<nav><ul><li><a href="#">Home</a></li><li><a href="#">Tutorials</a></li><li><a href="#">Pricing</a></li></ul></nav>

Exercise

Remove list markers.

list-style: ;

Quiz Test

Which element holds a menu?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.