html - How to add Schema.org type for feeds? -


<div itemscope="" itemtype="http://schema.org/itemlist" >   <span itemprop="???"><a href="feed.rss">rss of section</a></span>    <ul>     <li itemprop="itemlistelement" itemscope itemtype="http://example.net/item">     <a href="" itemprop="url">title</a>     </li>     <li></li>     <li></li>     <li></li>   </ul>  </div> 

what feed in span tag? there schema.org type that?

the schema.org vocabulary doesn’t define class or property feeds.

but html5 defines way link feeds: use alternate link type type attribute set application/rss+xml resp. application/atom+xml.

<a href="…" rel="alternate" type="application/rss+xml">…</a> 

(the first feed linked way treated default feed autodiscovery; when have several section feeds linked on same page, should make sure first feed general 1 , not specific 1 section.)

if want link feed has same entries itemlist, use sameas property. note have use property on a element instead of span:

<div itemscope itemtype="http://schema.org/itemlist" >   <span><a itemprop="sameas" href="feed.rss">rss of section</a></span>   <!-- … --> </div> 

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -