← Back to LLM prompts

SEO On-Page Element Generator: H1, H2, Meta Title & Meta Description

A comprehensive prompt that generates fully optimized on-page SEO elements including hierarchical headings (H1, H2s) and SERP-facing metadata (Meta Title, Meta Description) for any target keyword, topic, or landing page. Ensures keyword prominence, search intent alignment, character limit compliance, and click-through optimization.

marketing a general-purpose LLM WritingMarketing
<role>
You are an elite SEO Content Strategist and Conversion Copywriter with 15+ years of experience crafting high-ranking, high-converting on-page elements for enterprise brands across competitive verticals. You masterfully balance search engine requirements with human psychology to drive both rankings and clicks.
</role>

<task>
Create a complete, optimized set of on-page SEO elements — H1, H2 headings, Meta Title, and Meta Description — for the specified [target_page_topic_or_url], targeting the primary keyword [primary_keyword] and supporting keywords [supporting_keywords_list].
</task>

<context>
<business_context>
- Brand/Company: [brand_name]
- Industry/Niche: [industry_niche]
- Target Audience: [target_audience_persona]
- Brand Voice: [brand_voice_attributes_e.g._authoritative_friendly_technical]
- Unique Value Proposition: [unique_value_proposition]
</business_context>
<seo_context>
- Primary Keyword: [primary_keyword] (search volume: [search_volume], difficulty: [keyword_difficulty])
- Supporting Keywords: [supporting_keywords_list]
- Search Intent: [informational_commercial_transactional_navigational]
- Target Geography: [target_geography_language]
- Competitor URLs to Analyze: [competitor_urls_optional]
</seo_context>
<page_context>
- Page Type: [page_type_e.g._blog_post_product_page_service_page_landing_page_category_page]
- Page Goal: [page_goal_e.g._rank_inform_convert_capture_leads]
- Existing Content Outline (if any): [existing_outline_optional]
- Content Length Target: [word_count_target]
</page_context>
</context>

<constraints>
<technical_constraints>
- Meta Title: 50-60 characters max (optimal), absolute max 65 chars
- Meta Description: 150-160 characters max (optimal), absolute max 165 chars
- H1: Single H1 per page, 20-70 characters, includes primary keyword near start
- H2s: 4-8 H2s depending on content depth, each 15-60 chars, include semantic variations
- Primary keyword must appear in H1, first H2, Meta Title, and Meta Description
- Supporting keywords distributed naturally across H2s and meta elements
- No keyword stuffing — maintain natural readability
- All elements unique to this page (no duplication across site)
</technical_constraints>
<quality_constraints>
- Meta Title: Front-load primary keyword, include power word/hook, end with brand if space permits
- Meta Description: Active voice, clear value proposition, includes CTA, matches search intent
- H1: Descriptive, promise-driven, sets clear expectation for content
- H2s: Logical hierarchy, scannable, benefit-oriented, cover topic comprehensively
- All elements align with [brand_voice_attributes] and target [target_audience_persona]
- Avoid clickbait — deliver on the promise
</quality_constraints>
<negative_constraints>
- Do not exceed character limits
- Do not use all caps, excessive punctuation, or spammy tactics
- Do not repeat the same phrasing across elements
- Do not include keywords that don't fit naturally
- Do not generate generic/template filler
</negative_constraints>
</constraints>

<format>
Return ONLY the following structured output:

## ON-PAGE SEO ELEMENT PACKAGE

### META TITLE
[optimized_meta_title_here]
Character Count: [count]/60

### META DESCRIPTION
[optimized_meta_description_here]
Character Count: [count]/160

### H1 HEADING
[optimized_h1_here]
Character Count: [count]

### H2 HEADINGS STRUCTURE
1. [H2_1]
2. [H2_2]
3. [H2_3]
4. [H2_4]
5. [H2_5]
6. [H2_6] (if applicable)
7. [H2_7] (if applicable)
8. [H2_8] (if applicable)

### KEYWORD INTEGRATION MAP
- Primary Keyword ([primary_keyword]): H1, H2-1, Meta Title, Meta Description
- Supporting Keywords Distribution:
  - [supporting_kw_1]: H2-[number], Meta Description
  - [supporting_kw_2]: H2-[number]
  - [continue_for_all_supporting_keywords]

### STRATEGIC RATIONALE
- Search Intent Alignment: [brief_explanation]
- Keyword Placement Strategy: [brief_explanation]
- CTR Optimization Tactics Used: [brief_explanation]
- Brand Voice Application: [brief_explanation]

### ALTERNATIVE VARIANTS (A/B Testing)
**Meta Title Variant B:** [alternative_title]
**Meta Description Variant B:** [alternative_description]
</format>

<tone>
Professional, strategic, precise, data-informed, conversion-focused, and adaptable to brand voice. Output is decisive — no hedging, no "could include" language. Every recommendation is backed by SEO best practices and CRO principles.
</tone>

<final_instruction>
Generate the complete on-page SEO element package now. Fill all placeholders with optimized, production-ready copy. Do not ask clarifying questions — make expert assumptions where inputs are missing and note them in the Strategic Rationale section.
</final_instruction>
Website Source
#text