W3 CSS 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 is the correct HTML for referring to an external style sheet?

A

link rel=”stylesheet” type=”text/css” href=”mystyle.css”

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

Where in an HTML document is the correct place to refer to an external style sheet?

A

In the section head section

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

Which HTML tag is used to define an internal style sheet?

A

style

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

Which HTML attribute is used to define inline styles?

A

style

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

Which is the correct CSS syntax?

A

body {color: black}

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

How do you insert a comment in a CSS file?

A

/* this is a comment */

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

Which property is used to change the background color?

A

background-color:

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

How do you add a background color for all <h1> elements?

A

h1 {background-color:#FFFFFF}

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

How do you change the text color of an element?

A

color:

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

Which CSS property controls the text size?

A

font-size

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

What is the correct CSS syntax for making all the <p> elements bold?

A

p {font-weight:bold}

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

How do you display hyperlinks without an underline?

A

a {text-decoration:none}

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

How do you make each word in a text start with a capital letter?

A

text-transform:capitalize

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

How do you change the font of an element?

A

font-family:

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

How do you make the text bold?

A

font-weight:bold

17
Q
How do you display a border like this:
The top border = 10 pixels
The bottom border = 5 pixels
The left border = 20 pixels
The right border = 1pixel?
A

border-width:10px 1px 5px 20px

18
Q

How do you change the left margin of an element?

A

margin-left:

19
Q

To define the space between the element’s border and content, you use the padding property, but are you allowed to use negative values?

A

No

20
Q

How do you make a list that lists its items with squares?

A

list-style-type: square