Full width home advertisement



Post Page Advertisement [Top]

HTML Heading Tags

Any web page or document starts with a heading. You can use various sizes for your headings. HTML also has six levels of headings, which use the elements

<h1>, <h2>, <h3>, <h4>, <h5>, and <h6>.

While displaying any heading, browser adds one line before and one line after that heading.

<!DOCTYPE html>



<title>Heading Example</title>



<h1>This is heading 1</h1>

<h2>This is heading 2</h2>

<h3>This is heading 3</h3>

<h4>This is heading 4</h4>

<h5>This is heading 5</h5>

<h6>This is heading 6</h6>



The result will be :

This is heading 1

This is heading 2

This is heading 3

and so on..

HTML Paragraph Tag

The <p> tag provides a way to design your text into different paragraphs. Each paragraph of text should go in between an opening <p> and a closing </p> tag as shown below in the example:


<!DOCTYPE html>



<title>Paragraph Example</title>



<p>First paragraph of text.</p>

<p>Second paragraph of text.</p>

<p> Third paragraph of text.</p>



This will produce the following result:

First paragraph of text.

Second paragraph of text.

Third paragraph of text.


No comments:

Post a Comment

Bottom Ad [Post Page]

| Designed by Colorlib