# What happens when server-rendered HTML differs from client-rendered HTML?

> Differences can be harmless or SEO-critical.

Potentially important differences include:

- main content;

- title;

- canonical;

- robots directives;

- structured data;

- internal links;

- language;

- product availability.

Google's JavaScript guidance specifically advises caution with canonical URLs and robots meta tags because JavaScript changes can produce unexpected processing behavior.

The safest architecture is usually to make important SEO signals consistent between the initial HTML and the rendered output.

## Sources

- [Google Search Central — Javascript SEO Basics](https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics)

## Related questions

- [How can JavaScript affect canonical tags?](https://www.theseocentral.com/technical-seo-faq/how-can-javascript-affect-canonical-tags.md)
- [How can JavaScript affect internal linking?](https://www.theseocentral.com/technical-seo-faq/how-can-javascript-affect-internal-linking.md)
- [How can you determine whether important content is available in rendered HTML?](https://www.theseocentral.com/technical-seo-faq/how-can-you-determine-whether-important-content-is-available-in-rendered-html.md)
- [How do JavaScript redirects affect SEO?](https://www.theseocentral.com/technical-seo-faq/how-do-javascript-redirects-affect-seo.md)
- [How does Google process JavaScript-heavy websites?](https://www.theseocentral.com/technical-seo-faq/how-does-google-process-javascript-heavy-websites.md)
- [How would you audit a React, Next.js, Vue or Angular website for SEO?](https://www.theseocentral.com/technical-seo-faq/how-would-you-audit-a-react-next-js-vue-or-angular-website-for-seo.md)
- [How would you diagnose a JavaScript SEO problem?](https://www.theseocentral.com/technical-seo-faq/how-would-you-diagnose-a-javascript-seo-problem.md)
- [What happens between Google's initial HTML fetch and JavaScript rendering?](https://www.theseocentral.com/technical-seo-faq/what-happens-between-google-s-initial-html-fetch-and-javascript-rendering.md)
- [When would you recommend SSR, CSR, SSG or hybrid rendering?](https://www.theseocentral.com/technical-seo-faq/when-would-you-recommend-ssr-csr-ssg-or-hybrid-rendering.md)

---

Answered by Abhinav Krishna (https://www.theseocentral.com/author/abhinav-krishna)
Source: https://www.theseocentral.com/technical-seo-faq/what-happens-when-server-rendered-html-differs-from-client-rendered-html
