Holla Tech-Learn

The <p> Element


To create a paragraph, simply type in the <p>  element with its opening and closing tags: 

<html> <head> <title> First Page </title> </head> <body> <p> This is a paragraph. </p> 

<p> This is another paragraph. </p> </body> </html>

Result:

HT-Learn HTML

NOTE!
Browsers automatically add an empty line before and after a  paragraph.

Single Line Break

Use the <br />  tag to add a single line of text without starting a new paragraph: 

<html> <head> <title> first page </title> </head> <body> 

<p> This is a paragraph. </p> 

<p> This is another paragraph. </p> 

<p> This is <br /> a line break </p> </body> </html>

NOTE!
The <br />  
element is an empty HTML element. It has no end tag. 

Single Line Break

OPening the HTML file in the browser shows that a single line break has been added to the paragraph as below: 

HOLLA TECH - LEARN HTML

NOTE!
The <br /> element has no end tag.
BACK NEXT

CLICK ON THE BUTTON BELOW TO GO TO THE HTML MAIN COURSE PAGE. 

HTML MAIN COURSE PAGE

 


© License: All Rights Reserved 


CONTACT HOLLA TECH – LEARN SUPPORT