Cascading Style Sheets Flashcards

(6 cards)

1
Q

What is the purpose of CSS?

A

To style and visually format HTML content.

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

What is a CSS class selector?

A

A style applied to elements with a specific class name.

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

What does color do in CSS?

A

Changes the text colour.

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

What is an ID selector in CSS?

A

Targets a single element with a unique ID.

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

How do you create an ID in CSS?

A

By using a hastag #

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

How do you create a class in CSS?

A

By using a dot .

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