0

In list, <ol> give numbering and <ul> give bullets. Anything else?

maybe roman number (I, II, III) or alphabet (a, b, c) or arrows (->)

1st Feb 2017, 8:58 AM
prayoga
prayoga - avatar
6 ответов
+ 3
roman number, alphabet are considering to be 'numbered' types ( mean 'ordered' )... I don't remember if arrows are built-in option ( there is a lot, take a look at references ), but anyway, you can style it as you want/need. https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type http://www.w3schools.com/cssref/pr_list-style-type.asp
1st Feb 2017, 9:13 AM
visph
visph - avatar
+ 3
By clicking on and diving in the previously posted links ^^ #myList1 { list-style-type:upper-roman; } #myList2 { list-style-type:lower-latin; } <ol id="myList1">...</ol> <ol id="myList2">...</ol>
1st Feb 2017, 9:22 AM
visph
visph - avatar
+ 2
@Abo Hafez: You can, but you must avoid... because 'type' attribute is deprecated in Html5: you should use css to style whenever it's possible ;)
1st Feb 2017, 11:01 AM
visph
visph - avatar
+ 1
@visph how to make roman number and alphabet as numbering?
1st Feb 2017, 9:17 AM
prayoga
prayoga - avatar
0
thanks
1st Feb 2017, 9:31 AM
prayoga
prayoga - avatar
0
you can use the attribute <ol type="i"> for small roman numbering and <ol type="l"> for capital one
1st Feb 2017, 10:52 AM
Abo Hafez