liveBook · Manning

Navigation

As explained in Build a Website with ChatGPT

A navigation bar is a page component that provides links or controls for moving among pages or sections of a website.

Navigation is the part of a website that helps visitors move between pages. A navigation bar gathers links to the site's pages, or to its most important pages, in one convenient location. section 6.0 section 6.6

Create a navigation bar with <nav> and </nav> tags, placing a link for each destination between them. CSS can arrange the links horizontally with Flexbox, space them across the bar, and add borders and padding. section 6.2.2

A five-page navigation bar

Use links such as Home → index.html, Blog → blog.html, FAQ → faq.html, About → about.html, and Contact → contact.html. A matching request to ChatGPT can ask for these five links and the required HTML. Save the generated page as index.html and the CSS in the filename named by the HTML, commonly styles.css. section 6.6

On small screens, many links may not fit comfortably. A common adjustment is to replace the navigation element with an icon that opens a menu when clicked or tapped. section 6.2.2

How Build a Website with ChatGPT covers it

How deep it goes
Defines the component, demonstrates its HTML structure, explains Flexbox styling, and defers menu implementation to another chapter.
Examples
Uses Home, Blog, FAQ, About, and Contact links pointing to separate HTML files.
What it assumes
Starts with page links and HTML tags, requiring no stated coding background.
What you can do after
Build it from scratch with HTML and CSS or request a customized navigation bar from ChatGPT.
How it connects
Connects HTML links, CSS, Flexbox, responsive layouts, and website page structure.

Also explained in

Compare how 4 books explain navigation →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build a Website with ChatGPT. The section links point to the parts of the book it draws on.