DEV Community

Cover image for JSON-LD and hreflang: what models add that Google refuses
Georgi Kalchev
Georgi Kalchev

Posted on Originally published at aiskills402.com

JSON-LD and hreflang: what models add that Google refuses

We gave 44 page-head tasks to Sonnet and Haiku. Valid syntax hid a made-up currency, a self-awarded rating and an unsupported language code.

Two kinds of markup sit in a page head for search engines alone: JSON-LD, which describes the page, and hreflang, which links its language versions. A model asked to write either one tends to produce something that looks finished and passes every syntax validator, yet contains a value the page never stated or a code Google does not accept. In our tests the damage was small in count and sharp in kind: a currency nobody mentioned, a star rating a clinic gave itself, a language code Google names as unsupported. Below are the method, the exact answers, why each one matters, and a checklist for your own pages.

Read the full report on AISkills402: https://aiskills402.com/blog/json-ld-hreflang-models-get-wrong?utm_source=devto&utm_medium=social

Top comments (0)