Which HTML element is a block-level element?

Learn web design with our comprehensive test guide. Improve your skills with flashcards and multiple choice questions. Each question includes hints and explanations. Get ready to ace your exam!

Multiple Choice

Which HTML element is a block-level element?

Explanation:
Block-level elements start on a new line and stretch to the full available width, stacking vertically. Inline elements stay on the same line with surrounding content and only take up as much width as their content allows. Among these elements, the div is a block-level container. It’s designed to group sections of content and behave as a block in the page layout, making it ideal for structuring larger page areas. The other elements are inline: span is a generic inline container, while kbd and var mark specific inline content (keyboard input and a variable name) and don’t start new lines by themselves. So, the div is the block-level element.

Block-level elements start on a new line and stretch to the full available width, stacking vertically. Inline elements stay on the same line with surrounding content and only take up as much width as their content allows.

Among these elements, the div is a block-level container. It’s designed to group sections of content and behave as a block in the page layout, making it ideal for structuring larger page areas. The other elements are inline: span is a generic inline container, while kbd and var mark specific inline content (keyboard input and a variable name) and don’t start new lines by themselves.

So, the div is the block-level element.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy