prep-css-syntax, box model, and display Flashcards

1
Q

What is the purpose of CSS?

A

CSS is the language we use to style a web page. It is used to define styles for web pages, including the design, layout, and variations in display for different devices and screen sizes.

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

Describe the syntax of a CSS rule-set.

A

The syntax of a CSS rule set consists of a selector and a declaration block.
The selector points to the HTML element you want to style.
The declaration block contains one or more declarations separated by semicolons.
Each declaration includes a CSS property name and a value, separated by a colon.
Multiple CSS declarations are separated by semicolons, and declaration blocks are surrounded by curly braces.

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

What CSS properties make up the box model?

A

The CSS properties that make up a box model include a margin, border, padding, and the width and height of the actual content. The CSS box model is essentially a box that wraps around every HTML element.

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

Which CSS property pushes boxes away from each other?

A

Margin

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

Which CSS property pushes box content away from its border?

A

Padding

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

What are some characteristics of block?

A

The block display type displays an element as a block element. It starts on a new line, and takes up the whole width.

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

What are some characteristics of inline?

A

The inline display type displays an element as an inline element. Any height and width properties will have no effect.

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

What are some characteristics of inline-block?

A

The inline-block display type displays an element as an inline-level block container. The element itself is formatted as an inline element, but you can apply height and width values.

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