CSS Flashcards

1
Q

What is CSS?

A

Cascading style sheets

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

What is CSS for?

A

decides how your HTML should look like.

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

What can CSS do for us?

A

Add colors, change shapes and layout, and add animation.

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

What is a selector?

A

used to select the HTML element to be styled.

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

Selector is “what to do”. True or false?

A

False.

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

Declarations in CSS is “where to do”. True or false?

A

False.

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

p{ font-size: 25px; } which one of these is the declaration?

A

font-size: 25px

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

What is not part of CSS syntax?

A

HTML tags

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

What are the three ways to apply CSS?

A

Inline CSS, Internal CSS, External CSS

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

Inline CSS is to write CSS within HTML tags. True or False?

A

True

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

Internal CSS is to write CSS in a separate file with the .css extension.

A

False

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

How do you apply external CSS?

A

you have to write it in a separate file with the .css extension

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

Can you include all three ways?

A

Yes it is possible.

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

Inline CSS has the highest precedence. True or false?

A

True

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

The precedence of Internal and External CSS depends on the order of which you specify them inside the head tag. True or false?

A

True

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

CSS always reads from bottom to top. True or false?

A

False. It reads from top to bottom.

17
Q

What is Element selector?

A

use of the HTML element name.

18
Q

Class selector is specified using the class attribute. True or false?

A

True

19
Q

ID selector does not really have to be unique. True or false?

A

False

20
Q

Who gives the class/id name?

A

The programmer

21
Q

What is the most recommended way to apply CSS?

A

External CSS

22
Q

How do you write CSS comments?

A

/* comment */

23
Q

What is a semantic sectioning element?

A

A sectioning element used to section a specific part.

24
Q

What is a non-semantic sectioning element?

A

Sectioning element that is not that specific and can be used to section any part with the same outcome.

25
Q

div is a semantic sectioning element if it has a class. True or false?

A

False

26
Q

the main element is a semantic sectioning element. True or false?

A

True

27
Q

The main element can be used twice. True or false?

A

False. It can be used no more than once.

28
Q

What is a color scheme?

A

a specific set of colors or theme for a webpage.

29
Q

Define padding.

A

Padding is the space between the content and its border.

30
Q

Define margin.

A

The space between content and other content.

31
Q

What is a short-hand property?

A

A short cut in writing code. To be specific, it is a short cut in writing CSS.