Visual Rules Flashcards

1
Q

How do you change the typeface of text

A
Using the font-family property
Example:
h1 {
   font-family: Garamond;
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Web safe fonts

A

A group of fonts supported across most browsers and operating systems. Other fonts must be downloaded on the user’s computer or with the site

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

How to change font size?

A
Using the font size property
Example:
p {
   font-size: 18px;
}
(Note - px stands for pixels)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to change the font weight?

A
Using the font-weight property
Example:
p {
    font-weight: bold;
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the purpose of the <em>normal</em> value for the font-weight property

A

If all the text is set to bold, you can change a few lines of text to go back to normal if needed.

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

How to align text in a certain way?

A
Using the text-align property
Example:
h1 {
   text-align: right;
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the default text alignment?

A

Left side of the page

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

What are the four text alignments?

A

Left, Right, Center, Justify

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

What are the two ways color can appear?

A

Foreground Color and Background Color

Foreground Color: The color of the element
Background Color: The color of the background

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

How to change the foreground and background color?

A

Foreground: Use the color property
Background: Use the background-color property

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

How to change the opacity?

A
Using the opacity property, pick a value from 0-1 (0 being nothing and 1 being completely solid) 
Example:
h1 {
    opacity: 0.5 
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How to give an element a background image?

A
Using the background-image property, use the image's url
Example:
.main-banner  {
   background-image: url('image-url')
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly