seo结构化数据schema怎么做,代码怎么写

1. Google 富媒体结果测试工具(Rich Results Test)

👉 官方推荐

网址:
🔗 https://search.google.com/test/rich-results

使用方法:

  • 可以输入网址(建议页面已上线)

  • 或者直接粘贴你的 HTML / JSON-LD 代码

  • 它会告诉你是否合规、能不能出现在 Google 搜索的富媒体卡片中(如产品、FAQ)


2. Schema Markup Validator(Schema.org 验证器)

👉 官方 Schema.org 提供,更通用

网址:
🔗 https://validator.schema.org/

使用方法:

  • 粘贴你写的 HTML 或结构化 JSON-LD

  • 可以看到具体字段结构是否识别成功

企业信息(Organization / LocalBusiness)

适用于公司官网、外贸企业首页等:
				
					<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "name": "Your Company Name",
  "url": "https://www.yourdomain.com",
  "logo": "https://www.yourdomain.com/logo.png",
  "sameAs": [
    "https://www.facebook.com/yourpage",
    "https://www.linkedin.com/company/yourcompany"
  ],
  "contactPoint": {
    "@type": "ContactPoint",
    "telephone": "+86-123456789",
    "contactType": "customer service",
    "areaServed": "Worldwide",
    "availableLanguage": ["English", "Chinese"]
  }
}
</script>

				
			

产品页面(Product)

适用于单个产品详情页:
				
					<script type="application/ld+json">
{
  "@context": "https://schema.org/",
  "@type": "Product",
  "name": "Steel Cutting Saw",
  "image": [
    "https://www.example.com/images/product1.jpg"
  ],
  "description": "High performance industrial circular saw.",
  "sku": "SCS-001",
  "brand": {
    "@type": "Brand",
    "name": "YourBrand"
  },
  "offers": {
    "@type": "Offer",
    "url": "https://www.example.com/products/steel-saw",
    "priceCurrency": "USD",
    "price": "129.00",
    "itemCondition": "https://schema.org/NewCondition",
    "availability": "https://schema.org/InStock"
  }
}
</script>

				
			

博客文章(BlogPosting)

适用于博客或资讯页(SEO 推荐)
				
					<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "BlogPosting",
  "headline": "How to Use SMTP Safely in Your Foreign Trade Website",
  "image": "https://www.example.com/images/blog-cover.jpg",
  "author": {
    "@type": "Person",
    "name": "Kevin DD"
  },
  "publisher": {
    "@type": "Organization",
    "name": "Your Website Name",
    "logo": {
      "@type": "ImageObject",
      "url": "https://www.example.com/logo.png"
    }
  },
  "datePublished": "2025-06-25",
  "dateModified": "2025-06-25"
}
</script>

				
			

FAQ 问答页面(FAQPage)

可让 Google 搜索结果自动显示展开问答:
				
					<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "What is SMTP and why is it important?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "SMTP is a protocol for sending emails. It ensures that your inquiry forms can notify you properly."
      }
    },
    {
      "@type": "Question",
      "name": "Can I use my own SMTP instead of the hosting provider's?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Yes, and you should. Otherwise, they may intercept or delay your messages."
      }
    }
  ]
}
</script>

				
			

教程列表:

讨论区

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

添加站长微信立马沟通