Typography Flashcards

1
Q

How to style texts?

A

We have to use font-family:

There are three types of fonts
Serif - formal
sans-serif - informal-
monospace - all charaters are of same width.

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

What are web safe fonts?

A

Fonts that are easily available in web. No need to download.

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

WHat is CSS inhritance?

A

When a style is defined in parent, its children will get the same style. Children can override the parent’s styles.

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

How to make text look bigger or smaller?

A

font-size

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

How to make the text bolder?

A

font-weight

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

How to make text italic?

A

font-style

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

How to change the color of the text?

A

color:

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

What is Flash of Unstyled Text (FoUT)?

A

When we use custom font, the font might take sometime to download the custom font. During this time, the default font will be shown to the user. This is a bad user experience. There may be a layout shift.

To reduce, we use

font-display: auto | swap | optional* | block

We can also make the font file size to small by selecting very basic fonts.

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

What is a font service?

A

Services such as google font provides free fonts. To use, select the font, google will provide a code with . Then, use it just like other fonts.

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

What is a system font?

A

System fonts are readily available in the machine. to use, use font-famly: -(press ctrl+space)

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

What are the guidelines for sizing the fonts?

A

use type-scale.com to calculate the fonts.

h1,h2..h6
{
font-family
}

h1{
font-size:
}
….

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

How to set vertical spacing?

A

line-height; 1.5;

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

How to set space between words?

A

word-spacing:

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

How to set space between letters

A

letter-spacing:

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

What is ideal length of characters in a line?

A

50-70 characters

p
{
width: 50ch;
}

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

How to align text?

A

text-align: left | center | right | justfied

17
Q

The paragraphs should have 1 rem of space. how to do that?

A

p{
text-indent: 1 rem;
}

18
Q

How to make text underlined?

A

text-decoration: underline | line-through

19
Q

How to make text uppercase?

A

text-transform: lowercase | uppercase| capitalize

20
Q

How to make a line to not wrap?

A

white-space: nowrap. this will make the text in one line.

when we make the text nowrap, we can use overflow to hidden.

to show … in the text, we need to use

text-overflow: ellipsis.

21
Q

How to make text right ot left?

A

direction: rtl