All e-commerce websites with Product
Schema.org Microdata that I found use plain text in description
property.
Is there some specification that clearly prohibits markup with some text formatting tags like:
<div itemscope itemtype="http://schema.org/Product">
<meta itemprop="name" content="Name" />
<meta itemprop="description" content="<p>First paragraph with <b>bold words<b/>.</p><p>Second paragraph.</p>" />
</div>
Schema markup, also known as structured data, is the language search engines use to read and understand the content on your pages. By language, we mean a semantic vocabulary (code) that helps search engines characterize and categorize the content of web pages.
Schema.org (often called schema) is a semantic vocabulary of tags (or microdata) that you can add to your HTML to improve the way search engines read and represent your page in SERPs.
If you are using the newer JSON-LD format for schema data then it seems (at least with Google) that it's OK to include HTML markup for some fields - indeed, they actually ask for it. See their recommendation for JobPostings, for example, where they state for description:
The full description of the job in HTML format.
You must format the description in HTML.
Their Structured Data Testing Tool certainly doesn't seem to complain about HTML in fields, though you probably want to limit it to basic tags. Whether other parsers are OK with it is difficult to say.
You are using the meta
element. Its content
attribute can only contain a string. If you’d provide a value like <b>bold</b>
, <b>
and </b>
would be part of the value, and these would be interpreted as text, not as markup.
For Schema.org’s description
property, you can of course use a different element (like p
). This may contain markup, but the value for the description
property will be the text value.
So for
<p itemprop="description">foo <b>bar</b></p>
the value would be "foo bar".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With