Simple Website - Properties Flashcards
color
Sets the text color of an element. Accepts any CSS color unit.
background-color
Sets the background color of an element. Accepts any CSS color unit.
text-decoration
Primarily used to add or remove underlines from text.
max-width
Sets the maximum width of an element. Accepts any CSS length unit.
margin
Sets the space around the exterior four sides of an element. Accepts any CSS length unit.
padding
Sets the space on the interior four sides of an element. Accepts any CSS length unit.
text-align
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.
font-family
Defines which fonts should be applied to text.
font-size
Sets the size of text in either relative or absolute units.
font-weight
Sets the visual weight of text, which is more commonly known as “bold” as is the case in word processors.
line-height
Set the amount of space between each line of text. Accepts any CSS length unit.
list-style
Sets the style of numbers or bullet points for ordered and unordered lists. The marks can also be removed entirely with the value “none”.
float
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.
clear
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.
display
Sets whether an element should be rendered as a block element, inline element, or inline-block element.