'list-style-type' Example : list style type « CSS Attributes and Javascript Style Properties « HTML CSS Reference






'list-style-type' Example

    
<html>
<body>
<ol id="myL" class="explanations">
  <li>Item 1.</li>
  <li>Item 2.</li>
  <li>Item 3.</li>
  <li>Item 4.</li>
  <li>Item 5.</li>
</ol>
   <input type="button" 
          value='Set listStyleType to "circle"' 
          onclick="myL.style.listStyleType='circle'">
   <br>
   <input type="button" 
          value='Set listStyleType to "square"' 
          onclick="myL.style.listStyleType='square'">
   <br>
   <input type="button" 
          value='Set listStyleType to "disc"'   
          onclick="myL.style.listStyleType='disc'">
   <br>
   <input type="button" 
          value='Set listStyleType to "lower-alpha"' 
          onclick="myL.style.listStyleType='lower-alpha'">
   <br>
   <input type="button" 
          value='Set listStyleType to "lower-roman"' 
          onclick="myL.style.listStyle='lower-roman'">
</body>
</html>

    
      
      








Related examples in the same category

1.'list-style-type' Syntax and Note
2.'list-style-type' Possible Values
3.'list-style-type' is applied to