(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 controls the space between the content and the border of an element?
Answer: padding
padding adds space inside an element, between its content and border.
What does the CSS calc() function allow you to do?
Answer: Perform mathematical calculations to determine a value
calc() lets you perform calculations like calc(100% - 50px) to set property values.
Which property is used to separate the borders of adjacent table cells when border-collapse is set to separate?
Answer: border-spacing
border-spacing sets the distance between adjacent cell borders in separated-border tables.
What is the default value of the position property?
Answer: static
static is the default position, placing elements in normal document flow.
Which HTML element defines a row in a table?
Answer:
(table row) contains the cells that make up a horizontal row.
What does the CSS property 'opacity: 0.5' do to an element?
Answer: Makes it 50% transparent
opacity: 0.5 makes the element 50% transparent while keeping it in the layout.
Which property aligns text content to the center horizontally?
Answer: text-align: center
text-align: center horizontally centers inline content within its container.