针对介绍其他网站的网页,schema.org标记的正确用法是什么?
Short Answer
Absolutely! You can use schema.org:Website to represent an external site that your page is reviewing, analyzing, or discussing—this is fully compliant with Schema.org's specifications, and the type isn't restricted only to marking your own website.
Why This Works
Schema.org's Website type is designed to represent any website entity, regardless of whether you own it. When your page's core focus is on a third-party site (like an SEO analysis or code review), using the about property to link to a Website entity for that external site is a perfect way to signal to search engines exactly what your content is centered on.
Your Example: Is It Correct?
Yes, your provided implementation is valid! The only minor tweak I'd suggest is using the HTTPS version of the Schema.org context (it's now the preferred standard for better compatibility):
<script type="application/ld+json"> { "@context": "https://schema.org/", "@type": "WebPage", "name": "Website Analysis for example.com", "description": "An SEO analysis of the code on example.com.", "about": { "@type": "Website", "name": "example.com", "url": "http://example.com" } } </script>
Bonus: Enhance the Semantics
To make your markup even more useful, you can add additional properties to the Website entity if you have the information, like:
description: A brief overview of the external sitepublisher: The organization/person behind the external site (usingschema.org/Organizationorschema.org/Person)dateCreated: If you know when the site was launched
This extra detail helps search engines build a richer understanding of the external site you're covering.
内容的提问来源于stack exchange,提问作者Scott M. Stolz

