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

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.