Schema.org for acronym / abbreviation (in a glossary)

后端 未结 1 604
猫巷女王i
猫巷女王i 2021-01-24 18:46

I\'d like to mark my list of acronyms/abbreviations in my glossary of my website with Schema.org (using Microdata).

Which type of Schema.org is the right one for that? <

相关标签:
1条回答
  • 2021-01-24 19:10

    The type DefinedTerm (which is currently in Pending, so it’s subject to change) is suitable for a

    word, name, acronym, phrase, etc. with a formal definition

    In a glossary, you would use the name property for the term, and the description property for what the term stands for.

    <p itemscope itemtype="https://schema.org/DefinedTerm">
      <span itemprop="name">SO</span>: 
      <span itemprop="description">Stack Overflow</span>
    </p>
    

    Or with semantic markup:

    <dl>
    
      <div itemscope itemtype="https://schema.org/DefinedTerm">
        <dt itemprop="name"><dfn><abbr>SO</abbr></dfn></dt>
        <dd itemprop="description">Stack Overflow</dd>
      </div>
    
    </dl> 
    

    (For the whole glossary, you could use the type DefinedTermSet, and add each entry with the property inDefinedTermSet.)

    0 讨论(0)
提交回复
热议问题