HTML Block & Inline, HTML Lists Flashcards

1
Q

How do block-level elements affect the document flow?

A

Will always appear to start on a new line. Will take take the full width of the line.

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

How do inline elements affect the document flow?

A

Will always continue on the on the same line as its neighboring elements. Only takes up as much space as needed.

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

What are the default width and height of a block-level element?

A

Default width: full width of line (100%)

Default height: dependent on the element; however many lines the block-level element will occupy

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

What are the default width and height of an inline element?

A

Default width: width is bounded by the tags of the inline element
Default height: height of the line of the inline element

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

What is the difference between an ordered list and an unordered list in HTML?

A

Ordered list has order; uses the tag < ol >

Unordered list does not have order; uses the tag < ul >

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

Is an HTML list a block element or an inline element?

A

Block element (starts on a new line each time)

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