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

Setting the List Characteristics

After headings and paragraphs, probably the most common element used in Web pages is the bulleted list. In HTML, a bulleted list is created using the UL (Unordered List) element in combination with LI (List Item) elements. In the example file are the codes for the bulleted list as shown here (see Figure 3.9):

<p>This is a line above the list:</p>
<ul>
<li>First list item
<li>Second list item
<li>Third list item
</ul>
Figure 3.9. A bulleted list before any style is applied to it.

NOTE

You create a numbered list in HTML in the same way that you create a bulleted list, except that you use the OL (Ordered List) element ...

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