CSS Basics 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 CSS

A

CSS is a language for describing how documents are presented visually.

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

Write a CSS Rules

A

selector {
property: value;
}

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

How do you make all H1 elements on a page purple?

A

h1 {
color: purple;
}

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

Make all image elements 100pixels wide and 200 pixels tall

A

img {
width: 100px;
height: 200px;
}

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

What is best practice to connect CSS file to html?

A

element is used to link css to html. It goes in the head section of html file.

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

Name a few ways to represent color (text) property in CSS

A

color: indigo;
color: #56ff00;
color: rgb(255,255,100);

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

What is background-color? How would you change the h1 element background to red?

A

Changes the background color of selector.

h1 {
background-color: red;
}

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

For RGB what would be the code for white? black?

A
White = rgb (255, 255, 255)
Black = rgb (0, 0, 0)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How do you represent Hexadecimal (hex) colors?

A
red = #ff0000
green = #00ff00
blue = #0000ff
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do you set the horizontal alignment of text in an element?

A

text-align: left/right/center/justify;

*sets the alignment of text within an element.

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

How do you control the boldness or lightness of a given piece of text?

A

font-weight: normal (400);
font-weight: bold (700);
font-weight: 100;

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

How do you manipulate the appearance of decorative lines on text?

A
text-decoration: underline;
text-decoration: underline solid;
text-decoration: underline dotted red;
text-decoration: green wavy overline;
text-decoration: double line-through;
text-decoration: none;
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How to change the height spacing between text?

A

line-height: normal;
line-height: 2.5;
line-height: 150%;
line-height: 35px;

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

How do you control spacing between letters?

A

letter-spacing: 10px;

letter-spacing: normal;

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

How do you change font size?

A

font-size: 40px;

17
Q

How do you specify a specific group of fonts to use?

A

font-family: serif;
font-family: cursive;
font-family: fantasy;

18
Q

What is a font stack?

A

List of fonts that you would like to use in order:

font-family: serif, arial, futura;