HTML Headings

Headings in HTML are title and subtitles provide information about page content.

HTML Headings Basics

Headings in HTML can be defined with in <h1> to <h6> tags. You can show most important page heading with <h1> tag. While the least important heading can be shown with <h6>.

Example

<html>
<head>
<title>Displaying the Headings of HTML</title>
</head>
<body>
<h1>The Heading 1</h1>
<h2>The Heading 2</h2>
<h3>The Heading 3</h3>
<h4>The Heading 4</h4>
<h5>The Heading 5</h5>
<h6>The Heading 6</h6>
</body>
</html>

Headings for SEO

Headings are improtant aspect for indexing a webpage. Search engines crawl you web pages headings to index the structure of your site.

Note: Don’t use headings to make the text BIG or bold.

Leave a Reply

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