🚀 LEVEL UP TO SENIOR:Unlock 500+ Advanced Practical Challenges & Exercises.
🎓 COURSERA PARTNER:Earn professional Google, Meta, and IBM certificates to supercharge your resume.
REFERENCEhtml

html Documentation

LOADING ENGINE...

Geotagging

AI & DATA SCIENCE // geotagging

Geotagging meta tags (geo.position, geo.placename, geo.region, ICBM) were an early attempt to embed a page's physical location directly in HTML metadata.

Syntax

<meta name="geo.position" content="40.7128;-74.0060">
<meta name="geo.placename" content="New York City">
<meta name="geo.region" content="US-NY">

Deep Dive Course

**Geotagging meta tags** were an early-2000s convention for declaring a page's associated latitude/longitude, place name, and region code directly in `<head>`. They were never part of an official W3C standard, and modern search engines rely far more on **structured data** (JSON-LD with schema.org types like `LocalBusiness`, including a proper `address` and `geo` property) for location information, since it's a more rigorously defined, widely supported format. Geo meta tags still appear in some legacy sites but carry little to no real SEO weight today.

1Understanding Geotagging

Geotagging meta tags were an early-2000s convention for declaring a page's associated latitude/longitude, place name, and region code directly in <head>. They were never part of an official W3C standard, and modern search engines rely far more on structured data (JSON-LD with schema.org types like LocalBusiness, including a proper address and geo property) for location information, since it's a more rigorously defined, widely supported format. Geo meta tags still appear in some legacy sites but carry little to no real SEO weight today.

💡

If you need a page's location to actually influence local search results today, JSON-LD structured data with a schema.org LocalBusiness type (including its own geo/address fields) is the modern, actively-supported approach — not these legacy meta tags.

editor.html
<head>
  <meta name="geo.position" content="51.5074;-0.1278">
  <meta name="geo.placename" content="London">
  <meta name="geo.region" content="GB-LND">
</head>
localhost:3000

2Practical Example

Here is a real-world application of Geotagging showing how it is used in production HTML.

editor.html
<!-- The modern equivalent: JSON-LD structured data -->
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "LocalBusiness",
  "name": "Example Cafe",
  "geo": { "@type": "GeoCoordinates", "latitude": 51.5074, "longitude": -0.1278 }
}
</script>
localhost:3000

3Best Practices

Follow these guidelines when working with Geotagging:

1. Prefer schema.org JSON-LD structured data over legacy geo meta tags for real local-SEO impact

2. If keeping geo tags for legacy reasons, ensure geo.position uses 'latitude;longitude' format

3. Don't expect geo meta tags alone to meaningfully affect local search rankings today

⚠️

Tip: If you need a page's location to actually influence local search results today, JSON-LD structured data with a schema.org LocalBusiness type (including its own geo/address fields) is the modern, actively-supported approach — not these legacy meta tags.

editor.html
<head>
  <meta name="geo.position" content="51.5074;-0.1278">
  <meta name="geo.placename" content="London">
  <meta name="geo.region" content="GB-LND">
</head>
localhost:3000

Examples

Example 01Basic Usage
<head>
  <meta name="geo.position" content="51.5074;-0.1278">
  <meta name="geo.placename" content="London">
  <meta name="geo.region" content="GB-LND">
</head>
Example 02Advanced Example
<!-- The modern equivalent: JSON-LD structured data -->
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "LocalBusiness",
  "name": "Example Cafe",
  "geo": { "@type": "GeoCoordinates", "latitude": 51.5074, "longitude": -0.1278 }
}
</script>

Best Practices

  • Prefer schema.org JSON-LD structured data over legacy geo meta tags for real local-SEO impact
  • If keeping geo tags for legacy reasons, ensure geo.position uses 'latitude;longitude' format
  • Don't expect geo meta tags alone to meaningfully affect local search rankings today

Interview Question

Why do modern SEO guides recommend schema.org structured data over legacy geo meta tags for location information?

Hint: Think about which format search engines actually invest in parsing and rewarding with rich results.

Geo meta tags were never a formal, universally-adopted web standard, and major search engines never built significant ranking features around them. schema.org structured data (typically as JSON-LD), on the other hand, is actively maintained, documented, and directly powers visible rich results — like map pins, business hours, and review stars in search results — giving it real, measurable SEO value that legacy geo meta tags never had.

Exercises

EasyPractice using Geotagging in a real scenario.
View Solution
<head>
  <meta name="geo.position" content="51.5074;-0.1278">
  <meta name="geo.placename" content="London">
  <meta name="geo.region" content="GB-LND">
</head>

Frequently Asked Questions

Why do modern SEO guides recommend schema.org structured data over legacy geo meta tags for location information?

Geo meta tags were never a formal, universally-adopted web standard, and major search engines never built significant ranking features around them. schema.org structured data (typically as JSON-LD), on the other hand, is actively maintained, documented, and directly powers visible rich results — like map pins, business hours, and review stars in search results — giving it real, measurable SEO value that legacy geo meta tags never had.

Related Functions

META Tags