W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2011

[whatwg] adding microdata to basic links

From: Edward O'Connor <eoconnor@apple.com>
Date: Wed, 24 Aug 2011 12:53:43 -0700
Message-ID: <DCA4CA35-0F5A-43A5-BEF2-3DD5EB3B8C31@apple.com>
Tantek asked:

>> Could you provide a complete RDFa example of what you're attempting to
>> accomplish?

St?phane replied:

> <p>
> This book has been authored by
>    <span vocab="http://schema.org/" typeof="Person">
>        <a property="name" rel="url" href="http://smith.org/john">John
> Smith</a>
>    </span>
> </p>

This could be represented in Microdata without an extra element:

<p itemscope>
This book has been authored by
    <span itemprop="name">
        <a itemprop="url" href="http://smith.org/john">John

Or in the hCard microformat with even less markup:

<p class="vcard">
    This book has been authored by <a class="fn url"
    href="http://smith.org/john">John Smith</a>

Received on Wednesday, 24 August 2011 12:53:43 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:35 UTC