Top Ads

Html Use br,pre and hr Tag

HTML LINE BREAKS

The HTML <br> element defines a line break.
Use <br> if you want a line break (a new line) without starting a new paragraph.
The <br> tag is an empty tag, which means that it has no end tag.
CODE
<p>This is<br>a paragraph<br>with line breaks.</p>
VIEW

HTML <PRE> ELEMENT
The HTML <pre> element defines preformatted text.
The text inside a <pre> element is displayed in a fixed-width font (usually Courier), and it preserves both spaces and line breaks
CODE
<pre>
  Element defines preformatted text.
  Element defines preformatted text.
  Element defines preformatted text.
  Element defines preformatted text.
</pre>
VIEW


HTML HORIZONTAL RULES
The <hr> tag defines a thematic break in an HTML page, and is most often displayed as a horizontal rule.
The <hr> element is used to separate content (or define a change) in an HTML page

CODE

<h1>This is heading 1</h1>
<p>This is paragraph 1.</p>
<hr>
<h2>This is heading 2</h2>
<p>This is paragraph 2.</p>
<hr>
VIEW