HTML Headings

HTML headings are used as titles or subtitles that we display on a web page.

Headings are defined using the tags <h1>, <h2><h3><h4><h5>, and <h6> where <h1> is the most important heading and <h6> is the least important heading.

Headings always start on a new line.

Each heading has a default font size, which can be altered using CSS styles if we need to change it.

Search engines use web page headings for indexing, so using them appropriately is very important.

Never use headings to make the text BOLD.

Examples

<!doctype html>
<html lang="en">
<head>
</head>
<body>
    <h1>Heading 1</h1>
    <h2>Heading 2</h2>
    <h3>Heading 3</h3>
    <h4>Heading 4</h4>
    <h5>Heading 5</h5>
    <h6>Heading 6</h6>
    <h1 style="font-size:50px;">Heading 1 font size increased using inline CSS style</h1>
</body>
</html>

Overall

HTML headings are very important to an HTML document and must be used as needed.