Structured data, viewport, and language
Structured data can unlock rich results where Google supports them. The viewport meta tag supports responsive rendering. The lang attribute on <html> states the document language for accessibility and language targeting.
What we look for
- Presence of structured data (for example JSON-LD) on the page.
- Viewport meta for typical responsive setups.
- A declared language on the root element.
What to do
Add appropriate schema types for your content. Include a viewport meta for mobile-friendly layouts. Set lang (and hreflang where you manage multiple locales) consistently with your content.
Example
Declare language on the root element, add a viewport for responsive layouts, and include JSON-LD when it matches visible content:
<html lang="en-US">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebPage",
"name": "Leather tote bag",
"url": "https://example.com/products/leather-tote"
}
</script>
</head>
Technical details
We detect presence of structured data types at a high level; deep schema validation is out of scope for this layer. See On-page and technical signals.