schema.org

For technical support for all editions of CSS HTML Validator. Includes bug reports.
Post Reply
User avatar
roedygr
Rank V - Professional
Rank V - Professional
Posts: 370
Joined: Fri Feb 17, 2006 5:22 am
Location: Victoria BC Canada
Contact:

schema.org

Post by roedygr » Wed Apr 09, 2014 5:01 pm

Schema.org asks you to insert tags like this
<link itemprop="availability" href="http://schema.org/InStock">
in your HTML. You can classify what your data is in a standard way to help the search engines and screenscrapers.

I was quite puzzled that such a link tag did not alarm HTMLValidator, even though it appeared outside
the <head> and had a non-standard itemprop parameter. Normally <link appears in the header to hook up stylesheets.

I just wanted to make you aware of this so you are consistent.

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3451
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX
Contact:

Re: schema.org

Post by Albert Wiersch » Thu Apr 10, 2014 8:14 am

Hello Roedy,

This is because, according to the WHATWG HTML5 spec, the "link" element can be flow or phrasing content if the "itemprop" attribute is used, so it's not limited to only metadata in the "head" section.

http://www.whatwg.org/specs/web-apps/cu ... nk-element
Image
Albert Wiersch

Post Reply