HTML Tag with example || Heading tag / Pre-defined heading tag with example

HTML Tag with example || Heading tag / Pre-defined heading tag with example

HTML Tag :-

→ Tags are instructions that are embedded directly into the text of the documents.

→ All html tag begin with an open ‘<‘bracket and end with ‘>’bracket.

There are two types of HTML tags:-

  1. Paired Tag : –

<html>…………………</html>

<head>…………………</head>

<title>…………………</title>

<body>…………………</body>

<table>…………………</table>

2. Unpaired Tag : –

<br>

<hr>

<meta>

<input>

Heading tag / Pre-defined heading tag : –

→ HTML heading are defined with <h1> to <h6> .

→ <h1> defined most important heading.

→ <h6> defined least important heading.

Example : –

<html>

<body>

<h1> Good Morning , India ! <h1>

<h2> Good Morning , India ! <h2>

<h3> Good Morning , India ! <h3>

<h4> Good Morning , India ! <h4>

<h5> Good Morning , India ! <h5>

<h6> Good Morning , India ! <h6>

</body>

</html>

Output : –

Good Morning , India !

Good Morning , India !

Good Morning , India !

Good Morning , India !

Good Morning , India !
Good Morning , India !

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

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