
HTML>HTML Basics>Heading Tag
Heading Tag Paragraph Tag Line Break Tag Comment Tag Horizontal Rule Tag Block Quotes Tag
The Heading Tag
You know how to create a basic webpage.
This is great but it doesn't really do anything other than creating a blank webpage.
What if for example your want to add the following heading to your Webpage "This is my very first webpage !".
Well to do this you need to use the opening heading tag, <hx> and the closing heading tag </hx>. x being the size of the heading. x can range from 1 to 6.
<h1> defines the largest heading, <h6> defines the smallest heading.
Example
Try it out for yourself!
Examine the HTML code below. Cut and paste (Ctrl c + Ctrl v ) the following HTML code into the form window below and press the check it out button to see the resulting webpage.
Note how each heading is of a different size. HTML automatically adds an extra blank line before and after a heading.
<html>
<head>
<title>Heading Tags</title>
</head>
<body>
<h1>This is my very first webpage ! [Heading size 1]</h1>
<h2>This is my very first webpage ! [Heading size 2]</h2>
<h3>This is my very first webpage ! [Heading size 3]</h3>
<h4>This is my very first webpage ! [Heading size 4]</h4>
<h5>This is my very first webpage ! [Heading size 5]</h5>
<h6>This is my very first webpage ! [Heading size 6]</h6>
</body>
</html>Creating your own webpage
Follow these simple steps to create your own webpage and to view your created webpage in your browser.