microdata

Validation error: “The itemprop attribute was specified, but the element is not a property of any item”

怎甘沉沦 提交于 2019-12-03 02:26:13
For better SEO I need put some meta on my page like this: <!-- Schema.org markup for Google+ --> <meta itemprop="name" content="The Name or Title Here"> <meta itemprop="description" content="This is the page description"> <meta itemprop="image" content="http://www.example.com/image.jpg"> Here is the source . Then I check this code on Markup Validation Service : <!DOCTYPE html> <html> <head lang="en"> <meta itemprop="name" content="The Name or Title Here"> <meta itemprop="description" content="This is the page description"> <meta itemprop="image" content="http://www.example.com/image.jpg">

Meta tags itemprop

倾然丶 夕夏残阳落幕 提交于 2019-12-03 01:25:45
I am trying to include extracted structured data in my webpages. I included this for description: <meta itemprop="description" content="my description" /> However I realised that there is already a normal meta description on the page: <meta name="description" content="my description" /> Is it ok to leave both of them or it is really necessary to merge them together maybe like: <meta itemprop="description" name="description" content="" /> You should leave both of them. The Microdata Spec says: If a meta element has an itemprop attribute, the name, http-equiv, and charset attributes must be

microdata without span tag

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 21:15:47
问题 I have a site where the designer applied CSS to the base <span> tag which makes the tag effectively useless for microdata markup unless I want all my text to be blue, bold, and 125% bigger than normal. Are there alternative tags that I can use? I understand that I can use <meta> but I actually want the content to appear and it seems overkill to have to write it twice. 回答1: You can use every HTML5 element for Microdata. But note that some elements have special rules for determining the value,

What is the relationship between RDF, RDFa, Microformats and Microdata

こ雲淡風輕ζ 提交于 2019-12-02 18:08:42
I've done quite a bit of research but I can't understand the exact relationship between the 3. Also, now that W3C has officially recognised RDFa, would you recommend it over Microdata, taking into consideration that it matches Microdata's features and more? <sarcasm>I can't imagine what you find so confusing</sarcasm> (edit: these tags were invisible before) Very briefly: Microformats A way to use html pages as both a human readable document and machine readable data , without repetition (e.g. sticking CSV in the head element). RDF A data model designed for the web. Schemaless, uses URLs to

Should Schema.org dateModified have some default value if not available?

*爱你&永不变心* 提交于 2019-12-02 13:15:27
问题 For Schema.org Article I get an error in https://developers.google.com/structured-data/testing-tool/ for dateModified : The dateModified field is recommended. Please provide a value if available. Do I have to write something that I don't have modified date? Because a lot of posts weren't updated. I am unsure if Google is telling me only that it is recommended since there is bright red sign telling me I have an error and this doesn't look promising for my boss who will be checking after me :)

microdata without span tag

柔情痞子 提交于 2019-12-02 11:46:46
I have a site where the designer applied CSS to the base <span> tag which makes the tag effectively useless for microdata markup unless I want all my text to be blue, bold, and 125% bigger than normal. Are there alternative tags that I can use? I understand that I can use <meta> but I actually want the content to appear and it seems overkill to have to write it twice. unor You can use every HTML5 element for Microdata. But note that some elements have special rules for determining the value, and some elements come with additional requirements if used with Microdata. If your question is if

2 itemprops for 2 colors of the same product?

久未见 提交于 2019-12-02 07:02:56
In a product with two colors, is it better to use two itemprop items or just one? <meta itemprop="color" content="red" /> <meta itemprop="color" content="black" /> Or <meta itemprop="color" content="red and black" /> I am using https://schema.org/ vocabulary. unor From the Microdata perspective, both ways are possible. The difference is that you are adding two values in the first case, and one value in the second case. From the Schema.org perspective, we’d have to understand how this property was meant to be used. The description of color says: The color of the product. It uses singular here,

Should Schema.org dateModified have some default value if not available?

时光怂恿深爱的人放手 提交于 2019-12-02 06:56:32
For Schema.org Article I get an error in https://developers.google.com/structured-data/testing-tool/ for dateModified : The dateModified field is recommended. Please provide a value if available. Do I have to write something that I don't have modified date? Because a lot of posts weren't updated. I am unsure if Google is telling me only that it is recommended since there is bright red sign telling me I have an error and this doesn't look promising for my boss who will be checking after me :) unor The SDTT is not a general Schema.org validator. It primarily checks the Schema.org-based

itemtype with http or better https?

馋奶兔 提交于 2019-12-02 06:30:10
I use like: itemtype="http://schema.org/ImageObject" but the request http://schema.org/ImageObject will be forwarded to https://schema.org/ImageObject . If I change to itemtype="https://schema.org/ImageObject" , the Google SDTT shows no problem, but nearly all examples about structured data from Google are with http. What is best or recommended to use http://schema.org or https://schema.org for itemtype ? From Schema.org’s FAQs : Q: Should we write https://schema.org or http://schema.org in our markup? There is a general trend towards using https more widely, and you can already write https:/

Errors in Microdata for image/logo as part of a BlogPosting

こ雲淡風輕ζ 提交于 2019-12-02 03:53:12
I am having an issue getting a publisher logo and blog post image to validate using Google's Structured Data Testing Tool. Some sample markup of what I currently have is: <article class="post" itemscope itemprop="blogPost" itemtype="http://schema.org/BlogPosting"> <div class="preview"> <h2 itemprop="mainEntityOfPage headline"><a href="/blog/improving-the-patient-experience-through-the-revenue-cycle-part-1">Improving the Patient Experience through the Revenue Cycle Part 1</a></h2> <div class="meta"> <span itemprop="datePublished" class="published-date">Friday, February 19, 2016</span> <span