hCard Microformat (part 3)

Roger Costello

Click arrow key () to navigate to next page

label Property

  1. <pre>
  2. John Q. Smith
  3. 10 Boylston St.
  4. Boston, MA 01210
  5. </pre>

label Property

  1. <pre class="vcard">
  2. <span class="fn n">
  3. <span class="given-name">John</span>
  4. <abbr class="additional-name" title="Quinlan">Q.</abbr>
  5. <span class="family-name">Smith</span>
  6. </span>
  7. <span class="label">10 Bolyston St.
  8. Boston, MA 01210</span>
  9. </pre>

label Property

  1. <div class="vcard">
  2. <span class="fn n">
  3. <span class="given-name">John</span>
  4. <abbr class="additional-name" title="Quinlan">Q.</abbr>
  5. <span class="family-name">Smith</span>
  6. </span>
  7. <br />
  8. <span class="adr label">
  9. <span class="street-address">10 Bolyston St.</span>
  10. <span class="locality">Boston</span>,
  11. <abbr class="region" title="Massachusetts">MA</abbr>
  12. <span class="postal-code">01210</span>
  13. </span>
  14. </body>

Telecommunication Address Properties

tel Property

tel Property

  1. John Q. Smith's home telephone number is: 617-555-1234

tel Property

  1. <div class="vcard">
  2. <span class="fn n">
  3. <span class="given-name">John</span>
  4. <abbr class="additional-name" title="Quinlan">Q.</abbr>
  5. <span class="family-name">Smith</span></span>'s
  6. <span class="tel">
  7. <span class="type">home</span>
  8. telephone number is:
  9. <span class="value">617-555-1234</span>
  10. </span>
  11. </div>

Lab 2

  1. <body>
  2. <h1>Robert (Jake) Williams</h1>
  3. <h2>VITA</h2>
  4. <dl>
  5. <dt>Home Address</dt>
  6. <dd>1641 Beacon Street</dd>
  7. <dd>Philadelphia, Pennsylvania 19123-7774</dd>
  8. <dd>215/321-7654</dd>
  9. </dl>
  10. <dl>
  11. <dt>Business Address</dt>
  12. <dd>Pennsylvania Commission on Children and Youth</dd>
  13. <dd>1436 Market Street</dd>
  14. <dd>Philadelphia, Pennsylvania 19125-7707</dd>
  15. <dd>215/321-7222</dd>
  16. </dl>
  17. ... (continued on next slide)

Lab 2 (cont.)

  1. ...
  2. <dl>
  3. <dt>Reference</dt>
  4. <dd>Dr. Marie D. Fredericks</dd>
  5. <dd>Dean, College Of Education Temple University</dd>
  6. <dd>Philadelphia, Pennsylvania 19125-0021</dd>
  7. <dd>215/321-7111</dd>
  8. </dl>
  9. </body>

Lab 2 (cont.)

hCard and Microsoft Outlook

Lab 3

email Property

  1. His email address is: jpublic@gmail.com

email Property

  1. <div class="vcard">
  2. <abbr class="fn" title="John Q. Smith">His</abbr>
  3. email address is:
  4. <a class="email" href="mailto:jpublic@gmail.com">jpublic@gmail.com</a>
  5. </div>

mailer Property

  1. The emailing software that he uses is: Microsoft Outlook
  1. The emailing software that
  2. <div class="vcard">
  3. <abbr class="fn" title="John Q. Smith">he</abbr>
  4. uses is:
  5. <span class="mailer">Microsoft Outlook</span>
  6. </div>

Geographical Properties

tz Property

  1. He lives in the EST time zone.
  1. He lives in the
  2. <abbr class="tz" title="-05:00">EST</abbr>
  3. time zone

geo Property

geo Property

  1. His home GPS location is: 41.537063, -90.561585 (lat/lon)
  1. His home GPS location is:
  2. <div class="geo">
  3. <span class="latitude">41.537063</span>,
  4. <span class="longitude">-90.561585</span>
  5. </div>
  6. (lat/lon)

geo Property

  1. His home is a big, brown house.
  1. <abbr class="geo" title="41.537063;-90.561585">His home</abbr> is a big, brown house.

geo Property

  1. <abbr class="geo" title="41.537063;-90.561585">His home</abbr> is a big, brown house.

geo Best Practice

  1. <div class="vcard">
  2. <span class="fn n">
  3. <span class="given-name">John</span>
  4. <abbr class="additional-name" title="Quinlan">Q.</abbr>
  5. <span class="family-name">Smith</span>
  6. </span><br />
  7. <span class="adr">
  8. <span class="street-address">10 Bolyston St.</span><br />
  9. <span class="locality">Boston</span>,
  10. <abbr class="region" title="Massachusetts">MA</abbr>
  11. <span class="postal-code">01210</span>
  12. </span>
  13. </div>

geo Best Practice

  1. <div class="vcard">
  2. <abbr class="geo" title="42.352163;-71.062867">
  3. <span class="fn n">
  4. <span class="given-name">John</span>
  5. <abbr class="additional-name" title="Quinlan">Q.</abbr>
  6. <span class="family-name">Smith</span>
  7. </span>
  8. </abbr><br />
  9. <span class="adr">
  10. <span class="street-address">10 Bolyston St.</span><br />
  11. <span class="locality">Boston</span>,
  12. <abbr class="region" title="Massachusetts">MA</abbr>
  13. <span class="postal-code">01210</span>
  14. </span>
  15. </div>

hCard Mashup with Google Earth

Tool to convert an hCard to KML, for use in Google Earth

hCard Mashup with Google Earth

The KML of the hCard displayed in Google Earth

Lab 4

  1. <body>
  2. <h1>Donald Trump</h1>
  3. <p>Donald John Trump was born on June 14, 1946 (in Queens, New York) to Mary MacLeod Trump,
  4. a native of Scotland, and the soon-to-be millionaire Fred Trump. Trump is an American
  5. business executive, entrepreneur and author. He is the CEO of Trump Organization,
  6. an American-based real estate developer in the real estate market and the founder of
  7. Trump Entertainment, which operates gambling casinos. He enjoyed a great deal of
  8. publicity following the success of his reality television show, The Apprentice
  9. (in which he serves as both executive producer and host for the show).
  10. He resides in Trump Tower at 725 Fifth Avenue at 56th Street in New York City, NY.
  11. </p>
  12. </body>

Lab 4 (cont.)

geo Microformat

Continued ...