(Properties, Functions, Elements, & Tables) 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 (Properties, Functions, Elements, & Tables) flashcards as text
Which CSS function is used to apply a linear color transition across an element's background?
Answer: linear-gradient()
linear-gradient() creates a smooth transition between two or more colors along a straight line.
What does the CSS property 'display: none' do?
Answer: Removes the element from the page layout entirely
display: none removes the element from the layout, as if it were not in the document.
Which element groups the header content of an HTML table?
Answer:
groups the header rows of a table for structure and styling.
What unit represents a percentage of the viewport's width in CSS?
Answer: vw
vw (viewport width) equals 1% of the browser viewport's width.
Which property would you use to round the corners of a box?
Answer: border-radius
border-radius rounds the corners of an element's outer border edge.
What does the 'z-index' property control?
Answer: Stacking order of overlapping elements
z-index sets the stack order of positioned elements that overlap.
Which CSS property makes a table's cell borders merge into a single border?
Answer: border-collapse: collapse
border-collapse: collapse merges adjacent cell borders into one shared border.