Tuesday, May 22, 2018

Web Programming Lessons - HTML - Paragraphs

The p element is used to split text into paragraphs.

Example : 

                   <p>This is a paragraph 1</p>
        <p>This is a paragraph 2</p>
        <p>This is a paragraph 3</p>

Result : 















Browsers automatically add some space (margin) before and after each <p> element. The margins can be modified with CSS (with the margin properties).

No comments:

Post a Comment