Mobile app version of vmapp.org
Login or Join
Cooney921

: Can ContactPoint markup be made with Microdata or only JSON? I read this question, How to define phone types using Schema.org, but it uses JSON. And then Google's Instructions for Corporate Contacts

@Cooney921

Posted in: #Html #Microdata #SchemaOrg

I read this question, How to define phone types using Schema.org, but it uses JSON. And then Google's Instructions for Corporate Contacts uses JSON and finally Schema.org Contactpoint only shows examples in JSON.

Does this not exist without JSON? I'm not pulling from a database or anything so don't really want to use unnecessary JSON code.

Currently my Contact stuff is like this:

<div itemscope itemtype='http://schema.org/LocalBusiness'>
<p><strong>Contact Us:</strong></p>
<p>
Toll free: <strong itemprop='telephone'>1-800-123-4567</strong><br>
Local: 1-407-123-4567<br>
Email: <span itemprop='email'>info@company-name.com</span>
</p>


Is there a way to add the required @type ='ContactPoint' and contactType='customer service' to the HTML markup instead of needing to add JSON?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Cooney921

1 Comments

Sorted by latest first Latest Oldest Best

 

@Murray155

You can use Microdata (as you do in your example) as well. Just add the necessary properties and missing data (with a meta tag) for example like this:

<div itemscope itemtype='http://schema.org/LocalBusiness'>
<p><strong>Contact Us:</strong></p>
<p itemprop='contactPoint' itemscope itemtype='http://schema.org/ContactPoint'>
<meta itemprop='contactType' content='customer service'>
Toll free: <strong itemprop='telephone'>+1-800-123-4567</strong><br>
Local: 1-407-123-4567<br>
Email: <span itemprop='email'>info@company-name.com</span>
</p>
</div>

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme