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: ...

Get Cascading Style Sheets (CSS) by Example now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.