Headings and Paragraph

Headings 

<!DOCTYPE html>
<html>
<head>
<title> HEADING .....</title>
</head>
<body>
<h1>HTML h1 tag</h1>
<h2>HTML h2 tag</h2>
<h3>HTML h3 tag</h3>
<h4>HTML h4 tag</h4>
<h5>HTML h5 tag</h5>
<h6>HTML h6 tag</h6>
</body>
</html>

OUTPUT

HEADING .....

HTML h1 tag

HTML h2 tag

HTML h3 tag

HTML h4 tag

HTML h5 tag
HTML h6 tag
In HTML headings are defined with <h1> to <h6> tags.
<h1> defines the most important heading.<h6> defines the least important heading.



HTML Horizontal Rules

The <hr> tag creates a horizontal line in an HTML page.
<!DOCTYPE html>
<html>
<head>
<title> HEADING .....</title>
</head>
<body>
<h1>HTML h1 tag</h1>
<hr> <h2>HTML h2 tag</h2>
<h3>HTML h3 tag</h3>
<h4>HTML h4 tag</h4>
<h5>HTML h5 tag</h5>
<h6>HTML h6 tag</h6>
</body> </html>

OUTPUT

HEADING .....

HTML h1 tag


HTML h2 tag

HTML h3 tag

HTML h4 tag

HTML h5 tag
HTML h6 tag

The hr element can be used to separate content.
The HTML <head> Element


The HTML <head> element has nothing to do with HTML headings.It contains meta data. Meta data are not displayed.

The HTML <head> element is placed between the <html> tag and the <body> tag.


The HTML <title>  Element
The HTML <title> element is meta data. It defines the HTML document's title.

The title will not be displayed in the document. It might be displayed in the browser tab.



HTML Paragraphs 

In html <p> tag defines paragraphs. Browsers automatically add some space (margin) before and after each <p> element. Paragraph in HTML begins with <p> tag and Ends with</p>.
<p> This is a paragraph</p>

HTML Line Break
<br> tag is used to get new line in HTML. <br> element is an empty element in HTML.It has no end tag.

HTML <pre> Element

The HTML <pre> tag is used for indicating preformatted text. To display anything, with right spacing and line-breaks, you must wrap the text in a <pre> element.Normally HTML avoid all the space and line breaks. But in case of contents in <pre>  tag it prints all the spaces and line breaks.Following is an example.
<!DOCTYPE html>
<html>
<head>
<title> pre tag .....</title>
</head>
<body>
<pre></pre>
Hi

HTML
pre

tag
</body> </html>

OUTPUT

pre tag .....
Hi

HTML
pre

tag

0 Comment "Headings and Paragraph"