Core HTML

Unordered List Markers

The markers for an unordered list can be changed by setting the list-style-type style property. There are four types: disc, circle, square, and none. These are set, respectivey, by setting the list-style-type attribute as follows:

  • style="list-style-type:disc"
  • style="list-style-type:circle"
  • style="list-style-type:square"
  • style="list-style-type:none"

The default that is used when the no value is set is disc.

SevenSacraments.html

<!DOCTYPE html>
<html>
<head>
  <title>XoaX.net's HTML Unordered List Example</title>
</head>
<body>
  <ul style="list-style-type:square"><b>The Seven Sacraments of the Church</b>
    <li>Baptism</li>
    <li>Confirmation</li>
    <li>The Eucharist</li>
    <li>Penance</li>
    <li>The Anointing of the Sick</li>
    <li>Holy Orders</li>
    <li>Matrimony</li>
  </ul>
</body>
</html>
 

Output

 
 

© 2007–2024 XoaX.net LLC. All rights reserved.