HTML Headings Tags H1 to H6 – Complete Notes with Examples | PDF Download



 


What Are HTML Headings?

HTML headings are used to define titles and subtitles on a web page. They help organize content and make it easier for users and search engines to understand the structure of a webpage.

HTML provides six levels of headings, from <h1> to <h6>:

  • <h1> → Main heading (most important)
  • <h2> → Subheading
  • <h3> → Section heading
  • <h4> → Sub-section heading
  • <h5> → Minor heading
  • <h6> → Least important heading
Example of HTML Headings

<h1>This is Heading 1</h1>
<h2>This is Heading 2</h2>
<h3>This is Heading 3</h3>
<h4>This is Heading 4</h4>
<h5>This is Heading 5</h5>
<h6>This is Heading 6</h6>

Post a Comment

0 Comments