(Text, Borders, and Images) Flashcards
7 cards from real CSS practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 (Text, Borders, and Images) flashcards as text
Which CSS property controls the space between lines of text?
Answer: line-height
line-height sets the vertical spacing between lines of text.
What does 'text-transform: uppercase' do?
Answer: Converts text to all capital letters
text-transform: uppercase renders all characters as capitals.
Which border style produces a series of dots?
Answer: dotted
The dotted value draws the border as a row of dots.
Which property rounds the corners of a border?
Answer: border-radius
border-radius rounds the corners of an element's border box.
How do you make a background image not repeat?
Answer: background-repeat: no-repeat
background-repeat: no-repeat displays the image only once.
Which property sets the space between individual characters?
Answer: letter-spacing
letter-spacing adjusts the horizontal space between letters.
What is the shorthand to set border width, style, and color at once?
Answer: border: 2px solid red
The border shorthand takes width, style, then color.