HTML provides 6 levels of headers for us to display text as a title/header of the content. The header uses <h1>…</h1> for the largest font size, and <h6>…</h6> for the smallest font size. Try this code in your notepad:
<html>
<head><title>My Header!</title></head>
<body>
<h1>Header 1</h1>
<h2>Header 2</h2>
<h3>Header 3</h3>
<h4>Header 4</h4>
<h5>Header 5</h5>
<h6>Header 6</h6>
</body>
</html>
See what’s displayed on the screen, you will see all levels of headers, with different font size.
Advertisement