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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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;
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

property specifies an image as the list item marker

A

list-style-image

ul {
  list-style-image: url('sqpurple.gif');
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

property can also be used to remove the markers/bullets

A

list-style-type:none

How well did you know this?
1
Not at all
2
3
4
5
Perfectly