Visual Design Flashcards
How do you align text?
text-align:
What options does the text-align property have?
text-align: justify; causes all lines of text except the last line to meet the left and right edges of the line box.
text-align: center; centers the text
text-align: right; right-aligns the text
And text-align: left; (the default) left-aligns the text.
Which tag can you use to bolden text?
strong
Which tag can you use to underline text?
u
Which tag can you use to emphasise/italicize text?
em
Which tag can you use to strikethrough text?
s
Which tage can create a horizontal line between 2 elements
hr
what does rgba stand for?
red, green, blue, alpha/level of opacity
How do you add a shadow to an element?
box-shadow
what are the properties of box-shadow?
offset-x offset-y blur-radius spread-radius colour
In that order
What property adjusts the opacity of an element?
opacity
What property can be used to change the appearance of text in an element?
text-transform
what are the possible values of the text-transform property
lowercase, uppercase, capitalize, initial, inherit, no
What property changes the amount of vertical space each line gets?
line-height
What’s is a pseudo-class
A pseudo-class is a keyword that can be added to selectors, in order to select a specific state of the element.