p and div sample

This sample shows p and div containers.

<div style="color: maroon;">
  This is div 1.
</div>
<div style="color: maroon;">
  This is div 2.
</div>
<p style="background-color: silver;">
  This is paragraph 1.
</p>
<p style="background-color: silver;">
  This is paragraph 2.
</p>
<div style="color: maroon;">
  This is div 3.
</div>
          

The p tags create one blank line before paragraph 1, between paragraphs 1 and 2, and after paragraph 2.
The div tags do not create blank lines.

This is div 1.
This is div 2.

This is paragraph 1.

This is paragraph 2.

This is div 3.