It's often useful to present information on a web page as a list of items. There are three basic types of HTML lists. All three are shown in Figure 5.2, and Listing 5.2 reveals the HTML to construct them:
Listing 5.2. Unordered Lists, Ordered Lists, and Definition Lists<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>How to be Proper</title> </head> <body> <p> Basic Etiquette for a Gentlemen Greeting a Lady Aquaintance </p> <ul> <li>Wait for her acknowledging bow before tipping your hat.</li> <li>Use the hand farthest from her to raise the hat.</li> <li>Walk with her if she expresses a wish to converse; Never make a lady stand talking in the street.</li> <li>When walking, the lady must always have the wall.</li> </ul> <p> Recourse for a Lady Toward Unpleasant Men Who Persist in Bowing </p> <ol> <li>A simple stare of iciness should suffice in most instances.</li> <li>A cold bow discourages familiarity without offering insult.</li> <li>As a last resort: "Sir, I have not the honour of your aquaintance."</li> </ol> <p> Proper Address of Royalty </p> <dl> <dt>Your Majesty</dt> <dd>To the king or queen.</dd> <dt>Your Royal Highness</dt> <dd>To the monarch's spouse, children, and siblings.</dd> <dt>Your Highness</dt> <dd>To nephews, nieces, and cousins of the sovereign.</dd> </dl> </body> </html> Figure 5.2. The three types of HTML lists, as they appear in the most current version of Mozilla Firefox.
|