part 2 Flashcards

1
Q

What HTML tag do we use to link the HTML with the CSS file?

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

What HTML tag do we use to link the HTML with the CSS file?

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

CSS is written in rules. Each rule consists of:

A

selector and a declaration block… For instance, h1 is the selector and {font-size: 16px} is the declaration block

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

What is the difference between classes and IDs?

A

Classes can be used as many times as we wish, while ID’s can be used only once in each HTML document

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

What CSS property do we use to create space between elements?

A

margin

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

Using box-sizing: border-box, the width of an element is:

A

exactly the width we defined

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

HTML elements can be:

A

inline or block elements

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

A block element:

A

uses the full available width and forces link breaks

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

What HTML element is widely used to create containers?

A

<div></div>

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

We use the float property to:

A

put block elements side-by-side

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

CSS is written in rules. Each rule consists of:

A

selector and a declaration block… For instance, h1 is the selector and {font-size: 16px} is the declaration block

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

What is the difference between classes and IDs?

A

Classes can be used as many times as we wish, while ID’s can be used only once in each HTML document

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

What CSS property do we use to create space between elements?

A

margin

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

Using box-sizing: border-box, the width of an element is:

A

exactly the width we defined

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

HTML elements can be:

A

inline or block elements

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

A block element:

A

uses the full available width and forces link breaks

17
Q

What HTML element is widely used to create containers?

A

<div></div>

18
Q

We use the float property to:

A

put block elements side-by-side