Prelims - CSS Lists Flashcards
1
Q
In HTML, there are two main types of lists:
A
unordered lists (<ul>) - the list items are marked with bullets
ordered lists (<ol>) - the list items are marked with numbers or letters
2
Q
property specifies the type of list item marker.
A
list-style-type
ul.a { list-style-type: circle; } ul.b { list-style-type: square; } ol.c { list-style-type: upper-roman; } ol.d { list-style-type: lower-alpha; }
3
Q
property specifies an image as the list item marker
A
list-style-image
ul { list-style-image: url('sqpurple.gif'); }
4
Q
property specifies the position of the list-item markers (bullet points).
A
list-style-position
ul.a { list-style-position: outside; } ul.b { list-style-position: inside; }
“list-style-position: outside;” means that the bullet points will be outside the list item.
5
Q
property can also be used to remove the markers/bullets
A
list-style-type:none