22.04.2013 Views

HTML, XHTML & CSS

HTML, XHTML & CSS

HTML, XHTML & CSS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 5: Text and Lists<br />

Note that definition lists often display differently inside different browsers,<br />

and they aren’t always handled the same by search engines or text-to-speech<br />

translators. About.com has a nice discussion of definition lists at http://<br />

webdesign.about.com/od/htmltags/a/aa112006.htm. Alas, this<br />

means that definition lists may not be the best choice of formatting for lists<br />

you create (even lists of definitions). See the excellent coverage of this topic<br />

at www.maxdesign.com.au/articles/definition for a more detailed<br />

discussion.<br />

Nesting lists<br />

You can create subcategories by nesting lists within lists. Some common uses<br />

for nested lists include<br />

✓ Site maps and other navigation tools<br />

✓ Tables of content for online books and papers<br />

✓ Outlines<br />

You can combine any of the three kinds of lists to create nested lists, such as<br />

a multilevel table of contents or an outline that mixes numbered headings<br />

with bulleted list items as the lowest outline level.<br />

The following example starts with a numbered list that defines a list of things<br />

to do for the day and uses three bulleted lists to break down those items further,<br />

into specific tasks:<br />

<br />

<br />

<br />

<br />

Nested Lists<br />

<br />

<br />

Things to do today<br />

<br />

Feed cat<br />

<br />

Rinse bowl<br />

Open cat food<br />

Mix dry and wet food in bowl<br />

Deliver on a silver platter to Pixel<br />

<br />

Wash car<br />

<br />

Vacuum interior<br />

Wash exterior<br />

89

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!