Text and typography Flashcards

1
Q

What is the purpose of the @font-face rule in CSS?

A

It allows specifying and using custom fonts from a remote server or the user’s device.

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

Why are MIME types important when using web fonts?

A

They ensure the browser correctly interprets and loads font files.

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

How do you change the typeface of text in CSS?

A

Use the font-family property with a comma-separated list of specific and generic font families.

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

Why should you provide a generic font family in font-family?

A

It acts as a fallback in case preferred fonts are unavailable.

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

What property controls italic and oblique text styles?

A

The font-style property.

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

What values does font-style accept?

A

normal, italic, and oblique.

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

How do you control text boldness in CSS?

A

Use the font-weight property.

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

What numeric values does font-weight accept?

A

Ranges from 100 to 900, with 400 as normal and 700 as bold.

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

What property controls text size in CSS?

A

The font-size property.

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

What property controls the spacing between lines of text?

A

The line-height property.

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

What property adjusts the spacing between characters?

A

The letter-spacing property.

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

What property adjusts the spacing between words?

A

The word-spacing property.

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

What is the purpose of the font shorthand property?

A

It sets multiple font-related properties at once.

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

How do you change text capitalization using CSS?

A

Use the text-transform property.

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

What property adds underlines, overlines, or strikethroughs to text?

A

The text-decoration property.

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

What property controls text indentation?

A

The text-indent property.

17
Q

What property controls how hidden text is displayed?

A

The text-overflow property.

18
Q

What property controls how whitespace is handled in text?

A

The white-space property.

19
Q

What property controls how words break when they overflow a line?

A

The word-break property.

20
Q

What property controls the horizontal alignment of text?

A

The text-align property.

21
Q

What property controls the text flow direction?

A

The writing-mode property.

22
Q

What property controls the orientation of characters in vertical writing modes?

A

The text-orientation property.

23
Q

How do you add a shadow effect to text?

A

Use the text-shadow property.

24
Q

What are variable fonts?

A

Fonts that contain multiple variants of a typeface within a single file.

25
Q

What do ::first-letter and ::first-line pseudo-elements target?

A

The first letter and first line of a text block.

26
Q

What does the ::selection pseudo-element do?

A

It changes the appearance of selected text.