2.2 Lists Flashcards

(10 cards)

1
Q

What is the purpose of unordered list (<ul>) in HTML?

A

To display a bulleted list of items with no specific order.

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

What element is used for each item in a list?

A

<li> is used inside both ordered & unordered list.
</li>

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

How do you create an ordered list in HTML?

A

Use <ol><li>Item 1</li><li>Item 2 </li></ol> for a numbered list.

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

What does the type attribute in <ol> control?

A

It changes the numbering style (e.g, type=”A” gives A, B, C…).

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

What does the start attribute in <ol> do?

A

Specifies the starting number or letter for the list (e.g, Start=”5”).

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

What is a description list (<dl>) used for?

A

It creates a term-description pair list, often for definations.

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

What tags are used in a description list?

A

<dt> for the term, & <dd> for the description.
</dd></dt>

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

Can you nest items in list items?

A

Yes, you can nest <ul>, <ol>, or <dl> within <li> or <dd> elements.

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

Are lists block-level or inline-level elements?

A

Lists are block-level elements by default.

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

What is the default bullet style for <ul> in most browsers?

A

A solid disc (•)

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