Lesson #2 - Basic CSS Flashcards

1
Q

If you want to change the color of a heading, what property is used?

A

style

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

What’s an example of a syntax for a blue heading using < h2 >?

A

< h2 style=”color : blue;”> Text < h2 >

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

If you want to style an element using CSS, what is the first thing you usually write?

A

< style >

< /style >

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

If you wanted all h2 elements to be red, what would you type?

A
< style >
   h2 {
       color: red;
        }
< /style >
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a CSS Class?

A

Reusable styles that can be added to HTML elements.

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

Syntax wise, how would you create a class called “blue-text” that contains the color blue?

A

.blue-text {
color: blue;
}

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

Which property is used to change the size of the font?

A

font-size

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

Which property is used to change the font style?

A

font-family

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

True or False: If there is a space in the font-family name, you need to wrap it in quotes.

A

True

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

What are the steps to use customized fonts from the Google Font Store?

A

1) Copy the CSS font link
2) Past the link at the top of the HTML/CSS Page
3) Use the < link > element to import the font

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

When deciding a font-family, how do you establish a back-up font if the primary font you select is unavailable?

A

List it after the primary font

Ex. font-family: Helvetica, sans-serif;

Helvetica = Primary, San-serif = Backup

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

If we wanted to change the size of an image, what property would we use?

A

width

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

If you wanted to create a green, 5 pixel border around an HTML element, what would the syntax look like?

A
< style >
   .thin-green-border {
      border-color: green;
      border-width: 5px;
      border-style: solid;
   }
< /style >
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

If you want to change the corners of a square from sharp to round, what property would you use?

A

border-radius

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

True or False: You can only determine the border-radius through # of pixels.

A

False, you can also you %s as well.

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