# Formatting Web Page

HTML tags used for formatting a web page are headings, paragraph, line break, preformatted text and horizontal rule.

### Heading: <H1> to <H6>

HTML has six header tags: <H1>, <H2>, <H3>, <H4>, <H5> and <H6>. These are used to specify section headings. Text with header tags is displayed in larger and bolder fonts than the normal body text by a web browser. Every header leaves a blank line above and below it when displayed in browser.

<HTML> <HEAD>  <TITLE>Section Heading</TITLE> </HEAD> <BODY>  <H1>This is Section Heading 1</H1>  <H2>This is Section Heading 2</H2>  <H3>This is Section Heading 3</H3>  <H4>This is Section Heading 4</H4>  <H5>This is Section Heading 5</H5>  <H6>This is Section Heading 6</H6> </BODY></HTML>

### Paragraph: <P>

The <P> tag indicates a paragraph, used to separate two paragraphs with a blank line.

Example:

<P>Welcome to the world of HTML</P><P>First paragraph. Text of First paragraph goes here.</ P>

### Line Break: <BR>

The empty tag <BR> is used where the text needs to start from a new line and not continue on the same line. To get every sentence on a new line, it is necessary to use a line break.

Example:

Hello My<BR>World!

### Preformatted Text: <PRE>

The <PRE> tag can be used where it requires total control over spacing and line breaks such as typing a poem. Browser preserves your space and line break in the text written inside the tag.

Example:

<PRE>This is preformatted text.</PRE>

### Horizontal Rule: <HR>

An empty tag <HR> is used to draw lines and horizontal rules. It can be used to separate two sections of text.

Example:

Your horizontal rule goes here. <HR>The rest of the text goes here.