22.04.2013 Views

HTML, XHTML & CSS

HTML, XHTML & CSS

HTML, XHTML & CSS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 5-12: An unordered list uses bullets<br />

instead of numbers to mark items.<br />

Chapter 5: Text and Lists<br />

Use <strong>CSS</strong> if you want to exert more control over the formatting of your lists,<br />

including the ability to use your own graphics as bullet symbols.<br />

Definition lists<br />

Definition lists group terms and definitions into a single list and require three<br />

different elements to complete the list:<br />

✓ : Holds the list definitions (dl = definition list)<br />

✓ : Defines a term in the list (dt = definition term)<br />

✓ : Defines a definition for a term (dd = definition list definition)<br />

You can have as many terms (defined by ) in a list () as you need.<br />

Each term can have one or more definitions (defined by ).<br />

Creating a definition list with two items requires elements and content in the<br />

following order:<br />

1. <br />

2. <br />

3. First term name<br />

4. <br />

5. <br />

6. Content for the definition of the first item<br />

7. <br />

8. <br />

9. Second term name<br />

10. <br />

87

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

Saved successfully!

Ooh no, something went wrong!