If you find this helpful, please click the Google Button to the left, if it is white, to make it turn blue or red. Thank you! (It also helps find this page again more easily.) |
Person Microdata
Person microdata can be used to organize information about a person, which is sometimes called the person's profile or user profile.
- John Doe
- Jack
- Second Unit Director for Beverly Hills Television Studio
- Director
- http://www.ActingParts.com/directors/John.Doe/
- Directors Guild of America
-
123456 Seventh Street
Beverly Hills, CA 90210
USA
This is an actual working example of the Person microdata example code below.
Syntax
Item type: http://data-vocabulary.org/Person
Most of these Person properties are derived from the hcard microformat, except for friend, contact and acquaintance, which are XFN properties.
Property | Description | |
---|---|---|
name | required | The person's name. |
nickname | The person's nickname. | |
photo | A URL to an image resource (<img src>), which should be a photo of the person. | |
title | The person's job title. | |
role | The person's job role, which is the set of tasks and responsibilities the person has in their job position. | |
url | The URL for the primary web page for the person, such as the user's profile page. | |
affiliation | The name of the company or organization that the person is associated with, or a Organization microdata item for the business or organization. | |
friend | The name or URL (<a rel="friend">) of one friend of the person or a Person microdata item for the friend. | |
contact | The name or URL (<a rel="contact">) of one contact of the person or a Person microdata item for the contact. | |
acquaintance | The name or URL (<a rel="acquaintance">) of one acquaintance of the person or a Person microdata item for the acquaintance. | |
address | The address of a possible location of the person or a Address microdata item for the location. |
Examples
Person microdata example
(see Person microdata demo above)
<dl itemscope="itemscope" itemtype="http://data-vocabulary.org/Person"> <dt><label>Name:</label> <span itemprop="name">John Doe</span></dt> <dd><label>Nickname:</label> <span itemprop="nickname">Jack</span></dd> <dd><label>Position:</label> <span itemprop="title">Second Unit Director</span> for <span itemprop="affiliation">Beverly Hills Film Studio</span></dd> <dd><label>Role:</label> <span itemprop="role">Director</span></dd> <dd><label>URL:</label> <span itemprop="url">http://www.ActingParts.com/directors/John.Doe/</span></dd> <dd><label>Affiliation:</label> <span itemprop="affiliation">Directors Guild of America</span></dd> <dd><label>Address:</label> <div itemscope="itemscope" itemtype="http://data-vocabulary.org/Address" style="margin-left: 5em"> <span itemprop="street-address">123456 Seventh Street</span><br/> <span itemprop="locality">Beverly Hills</span>, <span itemprop="region">CA</span> <span itemprop="postal-code">90210</span><br/> <span itemprop="country-name">USA</span> </div> </dd> </dl>
The second and third lines of the address, starting with the <span> tags having itemprop="locality"
and itemprop="country-name"
, are not indented to ensure the browser does not add whitespace before those lines.