(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 property specifies how the columns of a table are laid out?
Answer: table-layout
table-layout controls the algorithm (auto or fixed) used to lay out table cells.
What does the CSS var() function do?
Answer: Inserts the value of a custom property
var() inserts the value of a CSS custom property (variable) like var(--main-color).
Which property sets the typeface used for an element's text?
Answer: font-family
font-family specifies a prioritized list of fonts to apply to text.
What does an HTML table's colspan attribute do?
Answer: Makes a cell span multiple columns
colspan makes a single cell extend across multiple columns horizontally.
Which property controls the space between flex or grid items?
Answer: gap
gap sets the spacing between rows and columns in flex and grid layouts.
What does 'overflow: hidden' do to content that exceeds its container?
Answer: Clips the overflowing content
overflow: hidden clips any content that extends beyond the element's box.
Which function defines a color using red, green, and blue channels in CSS?
Answer: rgb()
rgb() defines a color from red, green, and blue numeric values.