Simple Website - Properties Flashcards

1
Q

color

A

Sets the text color of an element. Accepts any CSS color unit.

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

background-color

A

Sets the background color of an element. Accepts any CSS color unit.

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

text-decoration

A

Primarily used to add or remove underlines from text.

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

max-width

A

Sets the maximum width of an element. Accepts any CSS length unit.

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

margin

A

Sets the space around the exterior four sides of an element. Accepts any CSS length unit.

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

padding

A

Sets the space on the interior four sides of an element. Accepts any CSS length unit.

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

text-align

A

Sets the justification of text, similar to a word processor. For example, text can be set to be aligned to the left, right, or center.

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

font-family

A

Defines which fonts should be applied to text.

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

font-size

A

Sets the size of text in either relative or absolute units.

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

font-weight

A

Sets the visual weight of text, which is more commonly known as “bold” as is the case in word processors.

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

line-height

A

Set the amount of space between each line of text. Accepts any CSS length unit.

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

list-style

A

Sets the style of numbers or bullet points for ordered and unordered lists. The marks can also be removed entirely with the value “none”.

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

float

A

Allows an element to be taken out of the normal flow and placed to the left or right of its container. Text and other inline elements will wrap around it.

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

clear

A

The clear property specifies whether an element can be adjacent to floated elements or if it should be moved down and “clear” any floated elements.

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

display

A

Sets whether an element should be rendered as a block element, inline element, or inline-block element.

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

border-radius

A

Defines the roundness of a border corner. Accepts any CSS length unit.

17
Q

background-image

A

Accepts an image path that applies the file to the background of an element.

18
Q

background-size

A

Sets the size of background images.

19
Q

background-repeat

A

Sets whether or not a background image should be repeated. By default, backgrounds will repeat.

20
Q

border

A

CSS shorthand property that allows for a visual outline or “border” to be applied to an element. Accepts a length unit to define the border-width, a keyword to define the border-style, and a color unit for the border-color.