When I started learning HTML, I kept hearing block and inline elements. Here's the simplest way to understand them.
What are Block-Level Tags?
Block-level elements always start on a new line and take the full available width.
Examples:
,,
,
Welcome
This is a paragraph.
Each element appears on its own line.
What are Inline Tags?
Inline elements stay on the same line and only use the space they need.
Examples: , , ,
Hello World!
The word World stays within the same sentence.
Top comments (0)