'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