CSS Flashcards

1
Q

Which is the correct way of changing the colour of a heading using CSS?
1.H1
{
black:
{
2.H1
}
color:black;
}
3. {H1
color;black}

A

H1
{
color:black;
}

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

What does CSS mean?

A

Cascading style sheet

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

What is the purpose of CSS?

A

How the web pages look such as color, font and layout

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

What is an ID selector?

A

A selector that identifies only one element within a HTML document Preceded by a # sign

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

What is the value?

A

The part of the CSS rule which specifies how the property/attribute will be modified.

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

What is the declaration?

A

Property name and value separated by a colon and terminated with a semicolon, for example… Font-family:sans serif;

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

What is an external style sheet?

A

A text file that contains style declarations

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

What is a class selector?

A

A selector that applies the same attribute to multiple HTML elements that reference it. Preceded by a. (full stop)

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

What is a syntax

A

Arrangement of words and symbols in a language

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

What is inline CSS style?

A

CSS code in the body of the HTML attribute <h1
style="color:black;"> in a HTML tag. Limited to styling one element at a time.

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

What is internal CSS style?

A

CSS coded in the head of the HTML code inside of <style> </style> tags. Limited to that one HTML page. (Also known as embedded)

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

What does the background color property do?

A

Configures the background colour of an element

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

What are the CSS rules?

A

A complete CSS style statement: selector, property and value

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

How do you add a boarder in CSS?

A

{
border: 5px solid white;
}

You have to state the size of the border, the style you want it to be for eg solid or dotted line and the color you want

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