[uf-discuss] best practices to represent "person working at"
Toby Inkster
mail at tobyinkster.co.uk
Fri Apr 23 03:54:20 PDT 2010
> say I want to represent a doctor working at a hospital.
> What's the preferred way to represent that?
>
> <div class="vcard">
> <span class="fn">Perry Cox, MD</span>
> <div class="org">Sacred Heart hospital</div>
> <div class="adr">
> <div class="street-address">1 Hospital Avenue</div>
> <span class="locality">San Diego</span>,
> <span class="region">CA</span>
> <span class="postal-code">92101</span>
> </div>
> <div class="tel">619) 555-5020 x 1234</div>
> </div>
The other way to do it would be to invert it and create an hCard for the
organisation, listing the doctor (or doctors) as an agent:
<div class="vcard">
<h1 class="fn org">Sacred Heart hospital</h1>
<div class="adr">
<div class="street-address">1 Hospital Avenue</div>
<span class="locality">San Diego</span>,
<span class="region">CA</span>
<span class="postal-code">92101</span>
</div>
<h2>Staff</h2>
<ul>
<li class="agent vcard">
<b class="fn">Perry Cox, MD</b>
<div class="tel">(619) 555-5020 x 1234</div>
</li>
<li class="agent vcard">
<b class="fn">John "<span class="nick">J.D.</span>" Dorian</b>
<div class="tel">(619) 555-5020 x 4321</div>
</li>
<!-- etc -->
</ul>
</div>
-Toby
More information about the microformats-discuss
mailing list