Help - Search - Members - Calendar
Full Version: Schema.org itemtype error, need advice
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
Boot
I'm trying to add microdata to our website and am getting an error when testing the code in Yandex.

CODE
<div class="responsive-container" itemscope="itemscope" itemtype=“http://schema.org/VideoObject”>
<meta itemprop="duration" content="T2M14S" />
<meta itemprop="caption" content="The Doctor of Pharmacy Program at Manchester University" />
<meta itemprop="uploadDate" content="2016-8-16" />

<iframe itemprop=”embedUrl” src="https://www.youtube.com/embed/aPhigRk9mms?rel=0" allowfullscreen="" frameborder="0" height="315" width="560"></iframe></div>


Error: WARNING: itemtype “http://schema.org/VideoObject” not recognized by validator

On schema.org it shows this exact itemtype. Any ideas where my mistake is?
Christian J
You're using invalid double quote characters in some places. Only this one: " (or single quotes) can be used.

Avoid editors like MS Word that may use the wrong kind of quote characters.
Boot
QUOTE(Christian J @ Jul 18 2017, 01:21 PM) *

You're using invalid double quote characters in some places. Only this one: " (or single quotes) can be used.

Avoid editors like MS Word that may use the wrong kind of quote characters.


Thank you, that was easy. I had no idea that made a difference. It's now just giving me the error that I don't have some values set yet, which I expected. Thanks for the quick response, I'll be doing everything in a simple text editor now.
pandy
You should run the whole thing through a HTML validator so you find the other instances of curly quotes too. But maybe that's what Yandex does.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.