Skip to Content
HTML5 24-Hour Trainer
book

HTML5 24-Hour Trainer

by Joseph W. Lowery, Mark Fletcher
February 2011
Beginner
331 pages
5h 58m
English
Wrox
Content preview from HTML5 24-Hour Trainer

Chapter 15. Extending Lists

Lists aren't just for bullets and numbers. With a little bit of CSS styling magic, the standard unordered list can be transformed into a navigation bar, complete with background imagery and interactive states. What's more, a completely different type of list used for definitions is available to the HTML coder. This lesson explores all these facets of lists and more.

UNDERSTANDING WEBSITE NAVIGATION BARS

A navigation bar is typically a series of links to pages in a site, grouped in a horizontal or vertical area. The links can be depicted either as plain text or text with imagery. Modern web designers, for the most part, use unordered lists to create navigation bars for their sites. CSS is often employed to change the appearance of the list to a series of navigation buttons or tabs, as shown in Figure 15-1.

FIGURE 15-1

Figure 15-1. FIGURE 15-1

Unordered lists are used as the basis for navigation bar for several reasons.

  • First, the links in a navigation bar are essentially a collection of similar items, as are list items.

  • Second, if the visitor's browser is incapable of rendering the styled elements, the navigation bar degrades gracefully to a fully functional group of links, which serves the same purpose as the navigation bar.

  • Finally, sub-menu items on a navigation bar, which may appear when the main menu item is clicked or hovered over, have an exact parallel in nested list ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Microsoft® HTML5 Step by Step

Microsoft® HTML5 Step by Step

Faithe Wempen

Publisher Resources

ISBN: 9780470647820Purchase bookExamples