Heading Tag ( h1 to h6)

Heading Tag <h1> to <h6>:-

he <h1> to <h6> tags are used to define HTML headings.
<h1> defines the most important heading. <h6> defines the least important heading.

Syntax:-
<heading number ALIGN="left | right | center">text here</heading number>

<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>

Example:-
<html>
<head>
<title>Index | HTML Heading </title>

<head>
<body bgcolor="lightblue" text="black">
<!-- pragraph tag-->
<!-- heading is here -->

<h1>Heading H1</h1>

<!-- remember p tag keeps one line break itself as shown here-->
<p>This program is free software; you can 
redistribute it and/or modify it under the 
terms of the GNU General Public License as 
published by the Free Software Foundation; 
either version 2 of the License, or (at your 
option) any later version.
</p>
<br>

<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>

<body>
</html>


The output the above example: 




To download HTML File:- ClickHere

Comments

Popular posts from this blog

Body tag < body > < / body>