6.3.1 Building the <nav> Menu in HTML and Hardcoding Our Links

The HTML we start with to create our navigation is shown in Example 6.15.

Example 6.15: Project Code

templates/base.html in ddc1da1f62

24       <nav> 25         <ul> 26           <li> 27             <a href=""> 28               Blog</a></li> 29           <li> 30             <a href=""> 31               Startups</a></li> 32           <li> 33             <a href=""> 34               Tags</a></li> 35         </ul> 36       </nav>

We have a three-item list, each of which is a link to one of our list pages. As with our HTML anchor tags before, we have left the href attributes unspecified. Our URL configuration for the list of startup objects ...

Get Django Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.