HTML Paragraphs

Paragraphs are defined with the <p> tag. To start a new line on the page you can use HTML Paragraph tag. Think of a paragraph as a block of text. You can use the align attribute with a paragraph tag as well.

HTML Paragraphs

Paragraphs are define with the <p> tag. Below is an example paragraph.

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

Note: Browsers will automatically add white space above and below a paragraph tag.

A browser ignores any indentations or blank lines in the source text without <p> elements, the document becomes one large paragraph.

To insert a blank line can use <br/> tag instead of <p> tag. Each paragraph of text should go in between an opening and a closing tag as shown below in the example

<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras pharetra metus a arcu vulputate aliquet.<br/> Nulla ac metus ut neque fringilla posuere. Pellentesque quis viverra nisl.</p>

HTML Line Breaks

The <br> tag is used when you want to start a new line, but don’t want to start a new paragraph. To add a line break to your HTML code, you use the <br> tag. The <br> tag does not have an end tag.


<p>This is a paragraph <br> with line breaks.</p>

If you omit this space, older browsers will have trouble rendering the line break, while if you miss the forward-slash character and just use it is not valid in XHTML.

After using this tag the sentence will be on the next different line.

HTML Tag Reference Manual

<p>Define the paragraph.
<br/>Insert a single line break (line break)

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *