How to put <ol type = a > to get the list tag output (a) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to put <ol type = a > to get the list tag output (a)

I want to get the result output of list tag as under: (a) (b) (c)

2nd Sep 2018, 3:16 PM
kp kalia
kp kalia - avatar
3 Answers
0
Type "a" does output a list with lowercase letters. I recommend using quotes for consistency: <ol type="a"></ol>. https://www.w3schools.com/tags/att_ol_type.asp For the parentheses, there seems to be a way using CSS. I never played with this, but pls see this answer in Stack Overflow: https://stackoverflow.com/questions/1632005/ordered-list-html-lower-alpha-with-right-parentheses
2nd Sep 2018, 3:42 PM
Emerson Prado
Emerson Prado - avatar
0
@Emerson Prado First and foremost I feel grateful to you for answering my question. But, sir, my requirement to learn how I can get the list "Books I am reading in 2018" in the following format(while using list tags) in my HTML Page. (a) (b) (c) once again thank you very much for care and concern. I feel myself proud to be connected with such wonderful community of learned people. I am just beginner and start to learn with SoloLearn in 2018 itself.
2nd Sep 2018, 4:12 PM
kp kalia
kp kalia - avatar
0
kp kalia You're welcome. This is exactly what I answered. You use 'ol' tag with 'type' attribute set to 'a', then format the list markers to use parentheses with CSS. Just follow the Stack Overflow link I mentioned and adapt to your need.
2nd Sep 2018, 4:20 PM
Emerson Prado
Emerson Prado - avatar