O'Reilly logo

Cascading Style Sheets (CSS) by Example by Steve Callihan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating Numbered Lists

Numbered lists are less common on the Web than bulleted lists, but they are useful when you want to present an ordered set of instructions, for instance, or any other numbered list of items.

Using the Example HTML File

The example HTML file, counterfeit.html, should already be available, if you downloaded and extracted the example files to your working folder. You can also type in the example file, if you wish (see Figure 11.13):

Listing 11.2. COUNTERFEIT.HTML—Is It Genuine Or Is It Counterfeit?
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Telling Real from Counterfeit</title> <style type="text/css"> body { margin: 3.5%; color: #030; background: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required