Blog about Web Programming and Electronics
💬 👤
back Back to blog
WEB (HTML, CSS, PHP)

On-Page SEO Optimization: Proper Heading Hierarchy (H1-H6) and Essential Meta Tags

On-Page SEO represents all measures taken directly within your website to help search engines (like Google) understand what your content is about. A properly structured page not only assists search crawlers in interpreting your material but also provides visitors with a clean and scannable reading experience.

In this article, we will examine in detail two fundamental pillars of On-Page SEO optimization: proper heading hierarchy usage and configuring essential meta tags inside the HTML document head.

1. Proper Heading Hierarchy (from <h1> to <h6>)

HTML offers six heading levels, from <h1> to <h6>. Their use goes beyond simple text sizing (which is handled by CSS) to establish semantic meaning and document structure.

Rules for proper implementation:

  • <h1> – Main Page Title: There must be strictly only one H1 heading per subpage. This title informs the search engine about the primary topic of the page or article.
  • <h2> – Main Chapters: Used to divide the article into major content sections.
  • <h3> – Subheadings: Divide individual sections (H2) into smaller, more specific topics.
  • <h4> to <h6> – Additional Sub-sections: Used less frequently, primarily in very long, technical, or complex documents.

Correct structure example:

<h1>Web Programming Guide</h1>
  <h2>1. HTML Basics</h2>
    <h3>1.1. What are HTML Elements</h3>
    <h3>1.2. How Links Work</h3>
  <h2>2. CSS Basics</h2>
    <h3>2.1. Text Styling</h3>

2. Essential Meta Tags in the <head> Section

Meta tags are placed inside the <head> element to provide browsers and search engines with metadata about your web page.

A) Title Tag (<title>)
The <title> tag is the single most important On-Page SEO element. It is displayed in browser tabs and serves as the main blue headline in Google search results.

<title>On-Page SEO Optimization: Headings and Meta Tags | Vadnica.org</title>

B) Meta Description
A short summary of the content displayed under the title in search results. A well-crafted description improves Click-Through Rate (CTR).

<meta name="description" content="Learn how to properly use H1-H6 headings and configure essential meta tags for better Google search rankings.">

C) Meta Viewport (Mobile Responsiveness)
A mandatory tag for proper page scaling across smartphones and tablets.

<meta name="viewport" content="width=device-width, initial-scale=1.0">

D) Meta Robots (Crawler Directives)
Specifies whether search engines should index the page and follow its links.

<meta name="robots" content="index, follow">

3. Open Graph Meta Tags (For Social Media)

To ensure proper preview images, titles, and descriptions when sharing your link on Facebook, LinkedIn, or X, add Open Graph (og) tags:

<meta property="og:title" content="On-Page SEO Optimization: Guide">
<meta property="og:description" content="Learn proper heading structure and meta tag configuration.">
<meta property="og:image" content="https://vadnica.org/img/blog/seo-image.avif">
<meta property="og:url" content="https://vadnica.org/blog/seo-guide">

Summary

Element / Tag Rule / Recommendation SEO Impact
<h1> Strictly 1 per subpage Extremely High (Primary topic)
<h2> & <h3> Logical hierarchy without skipping levels High (Content structure)
<title> 50–60 characters with primary keyword Extremely High (Rankings & clicks)
Meta Description 150–160 characters with call-to-action Medium (Affects CTR)
Meta Viewport Mandatory on every mobile page Critical for responsiveness

With proper heading structure and configured meta tags, you have laid solid foundations for high rankings on Google Search!

back Back to blog