Beginning HTML5 and CSS3 For Dummies
Book image
Explore Book Buy On Amazon

A bulleted list contains one or more items each prefaced by a bullet (often a big dot). Use this kind of list on your web page if the items’ order isn’t necessary for understanding the information it presents.

A bulleted list requires the following:

  • The unordered list element (

      ) specifies a bulleted list.

    • A list item element (

    • ) marks each item in the list.

    • The closing tag for the unordered list element (

    ) indicates that the list has come to its end.

An unordered list (another name for bulleted list) with three items requires elements and content in the following order:

    • Content for the first list item

    • Content for the second list item

    • Content for the third list item

The following markup formats a three-item list as a bulleted list:

  
    
    Bulleted Lists
  
  
    

Things to do today

  • Feed cat
  • Wash car
  • Grocery shopping

This figure shows how a browser renders this with bullets.

image0.jpg

Use CSS to exert more control over the formatting of your lists, including the ability to use your own graphics as bullet symbols.

About This Article

This article is from the book:

About the book authors:

Ed Tittel is a 30-year veteran of the technology industry with more than 140 computing books to his credit, including the bestselling HTML For Dummies.

Chris Minnick runs Minnick Web Services. He teaches, speaks, and consults on web-related topics and has contributed to numerous books, including WebKit For Dummies.

This article can be found in the category: