CSS Font Flashcards

1
Q

Font-family

A
  • specifies the font family for generic name
  • always specify a generic name
  • ex: sans-serif
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Serif vs Sans-serif (main fonts)

A
  • serif (little feet on the text)
  • sans-serif (without feet)
  • ex: font-family: sans-serif;
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Font-size

A
  • can specify font size

- ex; font-size : 28pt;

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

Font-variant

A

display font in small caps
-valid values:
normal (default)
small caps (uppercase but reduced size)

-ex: font-variant: small-caps;

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

Font style

A

-controls the slant font
-valid values:
normal
oblique
italic

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

Font-weight

A

-controls boldness of characters
-accepts numeric and pre-defined values:
100-900 (default is 400)
normal, lighter, bold (700), bolder

ex: 
.italic {
 font-weight: 800;
font-style: italic:
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

link href

style

A
  • used to import fonts

- if your font doesn’t work, you have backup fonts separated by a comma

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

text-align

A

-specifies the alignment of a text
-values:
center
left
right
justify
justify-all (forces the last line to be justified unlike justify)

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

text-decoration

A

controls underlining, overlaying and strike-through

valid values:
underline
overline
line-through
none

ex: text-decoration: underline;

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

text-transform

A

controls capitalization of letters
valid values:
ppercase, lowercase, capitalize which will set the first letter of each word to uppercase, or none

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

line-height

A

-the line-height property which controls the space in between lines of text. You can set the value to a numerical or length value as well as percentage

p {
line-height: 3em;
}

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

text-indent

A

controls spacing before first line of text of an element

values;
numerical
length
percentage

p {
text-indent: 1em;
}

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

Vertical-align

A

controls the vertical alignment of text in relation to its parent element

valid values:
baseline
top 
bottom
etc
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

direction

A

specifies reading direction

valid values;
ltr (left to right)
rtl (right to left)

ex: *{
direction: rtl;
}

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

letter-spacing

A

controls spacing between letters

ex: p {
letter-spacing: 1em;
}

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

word-spacing

A

space between words

valid values:
normal
length
percentage

ex: word-spacing: 2em;

17
Q

text-shadow

A

specifies shadow effects on text

syntax:
color, x-offset, y-offset, blur-radius

or

x-offset, y-offset, blur-radius, color

ex: text-shadow: 1px, 1px, 10px, blue;

18
Q

anchor tags <a> have default styling that can be overridden </a>

A