HTML Heading



HTML heading <h1> is an element used to make headings in a website or HTML documents.

It is important because search engines uses it to access your website and Users

use it to read through the contents of your website so a heading is very important in a HTML document.

There are six heading element they are:

<h1>: Major heading

<h2>: Heading

<h3>: Minor Heading

<h4>: Major Sub heading

<h5>:Sub heading

<h6>: Minor Sub heading

Note: Heading element are not used to make words bold in a HTML document to make a word bold use this element
<bold>.

Practice it on your note pad in your laptop.

Open Notepad and paste this code there or better still write it on your own because practice makes perfect.

<!DOCTYPE html>

<html>

<head>

<title>Page Title</title>

</head>

<body>


<h1 title="this is an attribute">My first heading</h1>


</body>

</html>

The h1 is the heading element I prefer to use but you can still add others like h2, h3 and so forth.

When you do this on your Notepad, do your control s and save it as firstproject.html then open the document on chrome.

If you look closely on the example I gave above you will notice in the h1 tag I wrote something like title="this is an attribute", I did that to show you the uses of attribute that you read about in my last article because practice makes perfect.

Keep on practicing with what you have learnt so far.

Thanks and have a blissful moment.

In my next article I will be talking more of attributes and its type 

Comments

Popular Posts