This chapter covers the core features and capabilities of Meta Tag Generator.
meta tags from a single config# Generate meta tags from a config file
python src/meta_tag_generator.py --config examples/site_config.json
# Generate a full HTML document
python src/meta_tag_generator.py --config examples/site_config.json --format html
# Validate without generating output
python src/meta_tag_generator.py --config examples/site_config.json --validate-only
# Output as JSON report (great for CI/CD)
python src/meta_tag_generator.py --config examples/site_config.json --format json
# Write to file
python src/meta_tag_generator.py --config examples/site_config.json --output head.htmlFollow this guide to get Meta Tag Generator up and running in your environment.
Create a JSON file with these fields:
| Field | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Page title (aim for 50-60 chars) |
description | string | Yes | Meta description (aim for 120-160 chars) |
charset | string | No | Character encoding (default: utf-8) |
viewport | string | No | Viewport settings (default: width=device-width, initial-scale=1.0) |
theme_color | string | No | Browser theme color (e.g., #00FF88) |
canonical_url | string | Yes | The canonical URL for the page |
language | string | No | HTML lang attribute (default: en) |
author | string | No | Page author |
robots | string | No | Robots directive (default: index, follow) |
keywords | array | No | List of keywords |
og_type | string | No | Open Graph type (default: website) |
og_title | string | No | OG title (falls back to title) |
og_description | string | No | OG description (falls back to description) |
og_image | string | Yes | OG image URL (1200x630 recommended) |
og_image_width | int | No | OG image width in pixels |
og_image_height | int | No | OG image height in pixels |
og_url | string | No | OG URL (falls back to canonical_url) |
og_site_name | string | No | Your site/brand name |
twitter_card | string | No | Twitter card type (default: summary_large_image) |
twitter_site | string | No | Twitter handle (e.g., @yoursite) |
twitter_creator | string | No | Author's Twitter handle |
custom_meta | array | No | Additional {name, content} meta tags |
See examples/site_config.json for a complete example.
Get the full Meta Tag Generator and unlock everything.
Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.
Access all interactive tools with complete data, all workload profiles, and the full scenario library.
Downloadable source code, configuration files, and working examples from every chapter.
Free updates for life. Every new chapter, tool, and improvement included.