TOPIC 2 Flashcards

1
Q

It has a huge impact on how the readers experience a website. The right font can create a strong identity for your brand.

A

Choosing a font

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

Using a ______ that is easy to read is important. This adds value to your text. It is also important to choose the correct color and text size for the font.

A

Font

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

What are the generic font families

A

Serif fonts
Sans-serif
Monospace
Cursive
Fantasy

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

have a small stroke at the edges of each letter. They create a sense of formality and elegance.

A

Serif Fonts

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

fonts have clean lines (no small strokes attached). They create a modern and minimalistic look.

A

Sans-serif

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

fonts - here all the letters have the same fixed width. They create a mechanical look.

A

Monospace

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

imitate human handwriting

A

Cursive

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

are decorative/playful fonts.

A

Fantasy Fonts

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

property sets the size of the text.

A

Font Sizes

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

Its value can be an absolute, or relative size

A

Font Sizes

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

Being able to manage the text size is important in web design. However, you should not use font size adjustments to make paragraphs look like headings, or headings look like paragraphs. Always use the proper HTML tags, like like < h1 > - < h6 > for headings and < p > for paragraphs.

A

Font Sizes

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

is relative to the font size of the parent element. depends on the nesting of elements and can result in cumulative scaling if nested deeply. is useful for scaling elements relative to their parent.

A

Em

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

is relative to the font size of the root element (). remains consistent throughout the document, as it always refers to the root font size. is ideal for designs requiring consistent global scaling.

A

Rem

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

What are the similarities of em and rem

A
  • Both are relative units in CSS and are not fixed like pixels (px).
  • They support scalable designs, making them ideal for responsive layouts.
  • Both are used for styling properties like font size, padding, and margins.
  • They allow flexibility and adaptability in designs based on their respective references.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Scaling fonts with em and rem in CSS allows for flexible and responsive design. Both units are relative to the font size of a parent element. However, em is relative to the font size of the nearest parent, while rem is relative to the font size of the root element (html).

A

Scaling fonts with em and rem

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

The text size can be set with a vw unit, which means the “viewport width”.

A

Viewport Units

17
Q

That way the text size will follow the size of the browser window

A

Viewport Units

18
Q

These keywords make the font size larger or smaller relative to the parent element’s font size

A

Larger and Smaller

19
Q

These keywords work similarly for font size as they do for other properties. They set the font size to be ________, ________, or ______.

A

Inherit, initial, annd unset

20
Q

is used to set the horizontal alignment of a text. A text can be left or right aligned, centered, or justified.

A

Text align property

21
Q

When it is set to “justify”, each line is stretched so that every line has equal width, and the left and right margins are straight (like in magazines and newspapers)

A

Text align property

22
Q

can be used to change the text direction of an element:

A

The direction and unicode-bidi properties

23
Q

Control the indentation of text using ____________

A

the text-indent property.

24
Q

Adjust line height to control spacing between lines of text.

A

Line Height (line-height)

25
Q

Change letter spacing for character spacing.

A

Letter Spacing (letter-spacing)

26
Q

are used to create space around elements, outside of any defined borders.

27
Q

To shorten the code, it is possible to specify all the margin properties in one property. The margin property is a shorthand property for the following individual margin properties: margin-top, margin-right, margin-bottom, margin-left

A

Margin Short hand property

28
Q

are used to generate space around an element’s content, inside of any defined borders.

29
Q

To shorten the code, it is possible to specify all the padding properties in one property. The padding property is a shorthand property for the following individual padding properties: padding-top, padding-right, paddingbottom, padding-left

A

Padding ShortHand Porperty