Inline vs Block Elements

easy
By FrontendAtlas Editorial · Updated Oct 5, 2026
Demonstrate the difference between block and inline elements using pure HTML. Show that block elements start new lines while inline elements flow within text without breaking layout, and explain the difference in a short summary section.

Solution idea

This task demonstrates default display roles using HTML only. Block elements like paragraphs start on new lines and take full width, while inline elements like strong and img flow within a line. The markup should make the difference obvious without any CSS edits or extra wrappers.