Css Syntax Flashcards

1
Q

What does CSS stand for?

A

Cascading Style Sheets

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

What symbol is used to denote a CSS comment?

A

/* */

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

How do you select an element by its ID in CSS?

A

elementID

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

What property is used to change the font size of an element?

A

font-size

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

True or False: CSS properties are case-sensitive.

A

True

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

What is the CSS property used to set the background color of an element?

A

background-color

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

In CSS, how can you group multiple selectors together to apply the same styles?

A

Separate selectors with a comma

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

What property is used to change the color of text in an element?

A

color

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

What is the CSS property used to set the width of an element?

A

width

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

What symbol is used to select all elements on a webpage in CSS?

A

*

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

What is the CSS property used to set the text alignment within an element?

A

text-align

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

How do you include an external CSS file in your HTML document?

A

<link></link>

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

What is the CSS property used to set the height of an element?

A

height

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

What is the default value of the display property in CSS?

A

block

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

In CSS, how can you target all elements of a specific class?

A

.className

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

What property is used to add space between the border and content of an element?

A

padding

17
Q

What is the CSS property used to set the font style of text?

A

font-style

18
Q

What is the CSS property used to set the font weight of text?

A

font-weight

19
Q

What is the CSS property used to set the text decoration of text?

A

text-decoration

20
Q

How do you select all elements of a specific HTML tag in CSS?

A

tagName

21
Q

What is the CSS property used to set the margin around an element?

A

margin

22
Q

What is the CSS property used to set the line height of text?

A

line-height

23
Q

What is the CSS property used to set the background image of an element?

A

background-image

24
Q

What is the CSS property used to set the border around an element?

A

border