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


HTML CSS TUTORIALS » CSS Attributes and Javascript Style Properties » list style type »

 

'list-style-type' Example



    
<html>
<body>
<ol id="myL">
  <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>

    
      
      



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo CSS Attributes and Javascript Style Properties
» list style type