HTML and CSS Reference
In-Depth Information
<div itemscope itemtype="http://schema.org/LocalBusiness"></div>
You have already taken a look at some of the properties that a LocalBusiness item can have; however, there are a lot
more. I won't bore you with the obscure properties that you will probably never use, but the following list shows the
more commonly used ones. You can find the full schema at http://schema.org/LocalBusiness .
name —This is simply the name of the local business.
<span itemprop="name" >Joe's Pizza Co.</span>
description —This property should contain a short description of the business.
<p itemprop="description" >
Joe's Pizza Co. offers a fantastic selection of pizzas
made using traditional techniques.
</p>
image —The image property could contain a photo of the business or the business's logo. In the
LocalBusiness item example shown earlier we used the map image as the image property.
<img itemprop="image" src="joes-pizza.png"
alt="A photo of the Joe's Pizza restaurant on Broadway">
As the itemprop attribute has been used on an <img> element, computer programs will use the content
of the src attribute.
url— If the business has a website, you can use the url property to specify the web address.
<a itemprop="url" href="http://example.com">
Joe's Pizza Co.</a>
Here, computer programs will use the absolute URL found in the href attribute.
address —To define the address for your LocalBusiness, use the address property. Schema.org provides
a separate schema for marking up postal addresses, PostalAddress.
<div itemprop="address" itemscope
itemtype="http://schema.org/PostalAddress" >
<span itemprop="streetAddress">123 Fake Street</span>
<span itemprop="addressLocality">Town</span>,
<span itemprop="addressRegion">State</span>,
<span itemprop="postalCode">P0ST C0D3</span>
</div>
Here we have created a nested PostalAddress item that forms the address property for your master
LocalBusiness item. Nesting microdata items within other items is perfectly fine.
map —The map property should contain a URL to a map of the location. This could be a link to a Google
map, for example.
<a itemprop="map" href="http://maps.google.com">See map</a>
telephone —As the name suggests, this property is for a telephone number.
<span itemprop="telephone" >01234 123123</span>
faxNumber —It's a little old school, but I'm told some people still use fax machines.
<span itemprop="faxNumber" >01234 123124</span>
email —You could either use a <span> element for defining the e-mail, or alternatively, link it up using
an <a> element. Both of the following examples would be fine.
<a itemprop="email" href="mailto:joe@example.com">
Email Joe</a>
Search WWH ::




Custom Search