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



Related Posts:

  • Html Tag Explained EXPLAINED TAG : The start tag is also called the opening tag, and the end tag the closing tag. The <!DOCTYPE html> decl… Read More
  • Save and Open the HTML Page Save the file on your computer. Select File > Save as in the Notepad++ menu. Name the file "Simple.html" and  You can use… Read More
  • HTML Versions & Structure Since the early days of the web, there have been many versions of HTML: HTML PAGE STRUCTURE Below is a visualization of an HTML page structure: … Read More
  • WHAT IS HTML? HTML IS A MARKUP LANGUAGE FOR DESCRIBING WEB DOCUMENTS(WEBPAGES).    1. HTML STANDS FOR HYPER TEXT MA… Read More
  • Write HTML Using Notepad or Notepad++ Follow the four steps below to create your first web page with Notepad or Notepad++. Step 1: Open Notepad or Notepad++ Open Notepad or No… Read More