Recall & Review
beginner
What are inline elements in HTML?
Inline elements are HTML elements that do not start on a new line and only take up as much width as necessary. They flow within the text.
Click to reveal answer
beginner
Name three common inline elements in HTML.
Common inline elements include
<span>, <a>, and <strong>.Click to reveal answer
beginner
How do inline elements differ from block elements?
Inline elements stay within the line and do not break the flow, while block elements start on a new line and take full width by default.
Click to reveal answer
intermediate
Can inline elements contain block elements inside them?
No, inline elements should not contain block elements. This can cause unexpected layout issues.
Click to reveal answer
beginner
What is the purpose of the
<span> element?<span> is an inline element used to group text or other inline elements for styling or scripting without affecting layout.Click to reveal answer
Which of the following is an inline element?
✗ Incorrect
<em> is an inline element used for emphasis. <div>, <section>, and <article> are block elements.What happens when you put a block element inside an inline element?
✗ Incorrect
Putting block elements inside inline elements is invalid HTML and can cause layout problems.
Which inline element is best for adding a link inside a paragraph?
✗ Incorrect
<a> is the inline element used to create hyperlinks.Inline elements by default:
✗ Incorrect
Inline elements flow within text and only take as much width as needed.
Which inline element is used to apply styles or scripts to part of text without changing layout?
✗ Incorrect
<span> is an inline element used for grouping inline content for styling or scripting.Explain what inline elements are and how they behave in HTML layout.
Think about how text flows naturally in a sentence.
You got /4 concepts.
List some common inline elements and describe a use case for each.
Consider elements you use inside paragraphs.
You got /3 concepts.