XML technologies / CSS / Advanced websites with CSS / Text effects and cascading / Styling lists with CSS

(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)

In HTML, lists begin with <ul> for an unnumbered list, or <ol> for a numbered list. (Note: Other list types exist for menus, definitions, glossaries and directories, but they do not differ visually from these two types, so I have omitted them.) Both are enclosing tags and require the closing tags </ul> or </ol> at the end of their element. Individual list items begin with a <li> and close with </li>.

Lists are block elements and, along with headings and paragraphs, are among the most frequently used HTML text elements. Three specific CSS properties apply exclusively to lists:

This list must also include the shorthand property list-style that sets several list properties in a single declaration.

  

  

 

 

 

back to top