"HTML Basics: Headings Explained Simply 🧱"

Coding with Anu
0

📘 HTML Basics: Understanding Headings

HTML headings are used to define titles or subtitles on a webpage. They range from <h1> (most important) to <h6> (least important).

HTML Headings Example

An overview of HTML heading tags from h1 to h6

🔹 Syntax:

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

📋 Quick Notes:

  • <h1> should be used only once per page — it's like the title.
  • Headings help with SEO and content structure.
  • Browsers display headings with different sizes by default.

✅ Output Preview:

This is a heading 1

This is a heading 2

This is a heading 3

This is a heading 4

This is a heading 5
This is a heading 6

📌 Posted by Anushka • Keep coding, keep growing!

Post a Comment

0 Comments

Post a Comment (0)

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Check Now
Ok, Go it!