Recall & Review
beginner
What does a
block element do in a webpage layout?A
block element takes up the full width available, starting on a new line. It stacks vertically, like building blocks in a column.Click to reveal answer
beginner
How does an
inline element behave differently from a block element?An
inline element only takes up as much width as its content and sits side-by-side with other inline elements on the same line.Click to reveal answer
intermediate
What is special about
inline-block elements?inline-block elements flow inline like text but can have width and height set like block elements. They combine features of both.Click to reveal answer
beginner
Which Tailwind CSS class makes an element behave like a block element?The Tailwind class
block sets the element's display to block, making it take full width and start on a new line.Click to reveal answer
beginner
How do you make an element inline-block using Tailwind CSS?
Use the Tailwind class
inline-block to make an element flow inline but still accept width and height.Click to reveal answer
Which display type makes an element take the full width and start on a new line?
✗ Incorrect
Block elements take the full width and start on a new line.
Which Tailwind class makes an element behave like inline text but allows width and height?
✗ Incorrect
The
inline-block class in Tailwind allows inline flow with block sizing.What happens if you use
inline display on a div?✗ Incorrect
Inline display makes the element flow inline and only take as much width as its content.
Which display type allows setting width and height but flows inline?
✗ Incorrect
Inline-block elements flow inline but accept width and height settings.
In Tailwind, which class would you use to make a paragraph behave like a block element?
✗ Incorrect
The
block class sets display to block in Tailwind.Explain the difference between block, inline, and inline-block display types using simple examples.
Think about how text and images sit in a sentence versus paragraphs.
You got /3 concepts.
How do Tailwind CSS classes
block, inline, and inline-block affect element layout?Relate each class to the CSS display property it sets.
You got /3 concepts.