+ 9
How we add roman number in ordered list in html?
7 Réponses
+ 14
<ol type=“i”> => roman lowercase
<ol type=“I”> => roman uppercase
good luck!!! 💪💪
+ 5
Thanks for this
+ 4
Você of the word
+ 2
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<ul id="roman1">
<li> sup?</li>
<li>upper roman? </li>
</ul>
<ul id="roman2">
<li> sup?</li>
<li>lower roman? </li>
</ul>
<style type="text/css">
#roman1 {
list-style-type:upper-roman;
}
#roman2 {
list-style-type:lower-roman;
}
</style>
</body>
</html>
i used unordered list just to show what is possible instead of ordered list
also internal css is not recommended..most external css is used but for this i used it....Happy coding
+ 1
<ol type="I">
</ol>
0
Use type attribute and set the value to 'i' for lowercase and 'I' for uppercase in ol tag .
<ol type="I">
- 5
https://code.sololearn.com/WRuCdJ4coEBV/?ref=app
This is a code showing the answer in it!! Please have a look at it!