Set the list style for unordered lists to "square", and the list style for ordered lists to "upper-roman". - HTML CSS CSS

HTML CSS examples for CSS:Quiz

Description

Set the list style for unordered lists to "square", and the list style for ordered lists to "upper-roman".

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
ul {<!--from   w  w w . j a  v  a 2 s  .  com-->
    list-style-type: square;
}

ol {
    list-style-type: upper-roman;
}
</style>
</head>
<body>

<p>This is an unordered list:</p>
<ul>
  <li>A</li>
  <li>B</li>
  <li>C</li>
</ul>

<p>This is an ordered list:</p>
<ol>
  <li>A</li>
  <li>B</li>
  <li>C</li>
</ol>
</body>
</html>

Related Tutorials