HTML – Heading

  • HTML Heading is used to add the heading in the web page.
  • There are 6 heading h1, h2, h3, h4, h5, h6
  • Each heading has default size
  • h1 defines the most important heading and h6 defines the least important heading.
HTML Code

πŸš€ Try it yourself! Click the button below to run the code and see the output in action.

HTML Code

Output

Why headings are important?

  • It helps in SEO
  • Always use <h1> headings for main page heading, <h2> for sub heading

Leave a Comment