HTML Block and Inline
Understand why some elements start on new line and others stay in the same line.
David Miller
December 31, 2025
0.0k0
Some elements take full line (block). Some stay in same line (inline). ## Block examples - div, p, h1, section ## Inline examples - span, a, b, i ## Example ```html <p>This is a paragraph.</p> <p>This is another paragraph.</p> <span>First</span> <span>Second</span> ``` ## Preview This is a paragraph. This is another paragraph. First Second ## Simple rule Block = new line Inline = same line
#HTML#Beginner