What Is HTML Tags?

Heading Tag

HTML characterizes six degrees of headings. A heading component infers all the text style changes, section breaks prior and then afterward, and any blank area important to render the heading. The heading components are H1, H2, H3, H4, H5, and H6 with H1 being the most elevated or most significant level and H6 the least. For instance:

<html>

<head>

<title>Heading tag</title>

</head>

<body>

<H1>This is first heading</H1>

<H2>This is  Second heading</H2>

<H3>This is  Third heading</H3>

<H4>This is   Fourth heading</H4>

<H5>This is  fifth heading</H5>

<H6>This is  sixth heading</H6>

</body>

</html>

 

Output:

 

This is first heading

This is second heading  

This is third  heading 

This is forth  heading 

This is fifth  heading 
This is sixth  heading 

 

Paragraph Tag

<p></p>Tag speaks to a passage. Passages are generally spoken to in visual media as squares of content isolated from adjoining hinders by clear lines or potentially first-line space, yet HTML sections are frequently any auxiliary gathering of related substance, similar to pictures or structure fields.

 

 

Example:

<!DOCTYPE html>

<html>

<head>

<title>Paragraph tag</title></head>

<body>

<p>1 st  paragraph of text.</p><p>2nd  paragraph of text.</p><p>3rd paragraph of text.</p></body>

</html>

 

 

Output:

1 st  paragraph of the text.

2nd  paragraph of the  text.

3rd paragraph of the  text.

 

Content Centering  Tag

<center> tag to put any text in the center of the page.For Example.

<!DOC TYPE html>

<html>

<head>

<title> Content Centering tag</title>

</head>

<body>

<center>

<p> center of the text.</p>

</center>

</body>

</html>

Result:

center of the text

Share

Leave a Reply

Your email address will not be published. Required fields are marked *