【问题标题】:Author Element not display with RDFa作者元素不与 RDFa 一起显示
【发布时间】:2020-05-30 23:36:18
【问题描述】:

对不起我的英语...

我有一个网站,我将提供电子书,我为电子书构建了我的 RDFa

<main vocab="http://schema.org/EBook" >
<h1>Title...</h1>
 <h1>Introduction to Linux </h1>
 <h2>A Hands on Guide</h2>
 <p><b>Author: </b> name_author</p> 
 <meta typeof="Book" resource="http://en.tldp.org/LDP/intro-linux/html/index.html">
 <meta property="name" content="Introduction to Linux - A Hands on Guide"/>
 <meta property="author" typeof="Person" content="Machtelt Garrels"/>
 <meta propety="inLanguage" content="en"/>

当使用 search.google.com/structured-data 进行测试时,可以说,

我确实尝试提供作者姓名,但不能。

请有人帮助我,谢谢!

【问题讨论】:

  • Book 一样定义 Person。然后设置两个Type之间的关系(authorhasAuthor共享Person

标签: schema.org google-rich-snippets rdfa


【解决方案1】:

人们帮助我解决...,如何为 Books 构建我的 RDFa。

<h2 property="name">
  <span class="title">Introduction to Linux</span>
  <span hidden="">–</span>
  <span class="subtitle">A Hands on Guide</span>
 </h2>
 <p property="author" typeof="Person">
<b>Author:</b>
 <span property="name">Machtelt Garrels</span>
</p>
<meta property="inLanguage" content="en"/>

【讨论】:

    猜你喜欢
    • 2016-11-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-01-30
    • 1970-01-01
    • 1970-01-01
    • 2016-06-06
    • 2016-02-01
    相关资源
    最近更新 更多