Sams Teach Yourself HTML, CSS & JavaScript Web Publishing in One Hour a Day

(singke) #1
ptg16476052

Unordered Lists 79

5


n "disc"—A disc or bullet; this style is the default.
n "square"—Obviously, a square rather than a disc.
n "circle"—As compared with the disc, which most browsers render as a filled
circle, this value should generate an unfilled circle.

In this case, the values for list-style-type and for the type attribute are the same. In
the following input and output example, you see a comparison of these three types as ren-
dered in a browser (see Figure 5.6):


Input ▼



  • DAT - Digital Audio Tapes

  • CD - Compact Discs

  • Cassettes



  • DAT - Digital Audio Tapes

  • CD - Compact Discs

  • Cassettes



  • DAT - Digital Audio Tapes

  • CD - Compact Discs

  • Cassettes


Output ▼


FIGURE 5.6
Unordered lists
with different bullet
types.

Free download pdf