(Fundamentals, Colors, and Styling) 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 (Fundamentals, Colors, and Styling) flashcards as text
Which property is used to set the size of text?
Answer: font-size
font-size controls the size of text characters.
What does the unit 'px' stand for in CSS?
Answer: Pixels
px is an absolute unit representing pixels.
Which CSS rule would set the entire page's background to light blue?
Answer: body {background-color: lightblue;}
Targeting the body with background-color colors the whole page area.
In the box model, which layer is outside the border?
Answer: margin
Margin is the outermost space surrounding the border.
Which value of 'font-style' makes text slanted?
Answer: italic
font-style: italic renders text in a slanted, cursive form.
What does 'text-align: center;' do to a block element's text?
Answer: Horizontally centers it
text-align: center horizontally centers inline content within its block.
Which RGB value produces pure green?
Answer: rgb(0,255,0)
rgb(0,255,0) is full green with no red or blue.