I'm working on a work file and I have to make a numbered list with roman number in html but I don't now how I can do it. Is there someone that can help me?
You can use CSS to solve this using list-style-type: upper-roman;
:
ul, ol {
list-style-type: upper-roman;
}
<ul>
<li>Test 1</li>
<li>Test 2</li>
</ul>
<ol>
<li>Test 1</li>
<li>Test 2</li>
</ol>
This solution is working with
<ol>
and<ul>
lists.
solution using HTML
You can also use HTML with an ordered list (<ol>
) with the type
attribute:
<ol type="I">
<li>Test 1</li>
<li>Test 2</li>
</ol>