Lists Flashcards

1
Q

What are the three types of lists in HTML?

A

Ordered lists, unordered lists, description lists.

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

What are the two elements inside a description list in HTML?

A

Description terms (<dt>) and description details (<dd>).

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

What is the parent element for unordered lists in HTML?

A

The <ul> element.

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

What is the parent element for ordered lists in HTML?

A

The <ol> element.

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

What attributes can be used with the <ol> element in HTML?

A

type, reversed, and start.

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

What is the role of the <li> element in HTML lists?

A

The <li> element represents a list item and is used as a child of <ul>, <ol>, or <menu> elements.

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

What attribute is used to specify the starting number in an ordered list?

A

The start attribute.

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

What HTML element contains a list of <option> elements?

A

The <select> element.

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

What is the difference between ordered and unordered lists in HTML?

A

Ordered lists use numbers or letters (e.g., <ol>), while unordered lists use bullets (e.g., <ul>).

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