Skip to main content

HTML-Paragraph

<p> is used to represent paragraphs in html.These have both opening and closing tags. So anything mentioned within <p> and </p> is treated as a paragraph.

Example
<p>This is a paragraph</p>
<p>This is also a paragraph</p>

This is a paragraph

This is also a paragraph

HTML Horizontal Rules

The <hr> tag in HTML stands for horizontal rule and is used to insert a horizontal rule or a thematic break in an HTML page to divide or separate document sections. The <hr> tag is an empty tag, and it does not require an end tag.

Example
<h1>This is heading 1</h1>
<p>This is some text.</p>
<hr />
<h2>This is heading 2</h2>
<p>This is some other text.</p>
<hr />

This is heading 1

This is some text.


This is heading 2

This is some other text.


HTML Line Breaks

The browser does not recognize new line and paragraph formatting in the text. If you want to start a new line, you need to insert a line break with the help of the<br>. The <br> tag inserts a single carriage return or breaks in the document. This element has no end tag.

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

This is
a paragraph
with line breaks.