1

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?

I can't find any related type in the full list on schema.org.

unor
  • 92,415
  • 26
  • 211
  • 360
coding.ms
  • 91
  • 5

1 Answers1

3

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.)

unor
  • 92,415
  • 26
  • 211
  • 360
  • 1
    Oh wow, I had no idea it is now allowed to put a `div` inside a `dl` directly. This makes some styling challenges *a lot* less challenging. – ACJ May 15 '19 at 07:37