2

The problem that I have is that I have a client that sells local services, he wants to use a h1 that includes both the service and local, no problem there… But the snag is he wants to use as much as Schema.org as possible, again no problem but with the service name + location within the h1 this brings up a problem in my markup. When I mean problem I don’t mean it doesn’t validate, I like doing things the correct way and for all you who use Schema.org regularly you know it’s poorly documented on Do’s and Don’ts so to speak.

So for example purposes only because I can’t disclose much information in regards of my client nor the topic due to a NDA being signed, so let’s pretend his/her company is a hair dressing company that he wants to target Devon in the UK.

The h1 would read something like "Cut and Blow Devon" (I personally dislike the keyword "Devon" in there but sometimes no matter how hard you try you just can’t convince people what’s best for them).

Anyway, so we have "Cut and Blow Devon" which looks something like (Product is equal to service, as there is no service in Schema.org):

<article itemscope itemtype="http://schema.org/Product">
    <h1><span itemprop="name">Cut and Blow</span> Devon</h1>
    <span itemprop="description">A funky Description will go here</span>
</article>

Originally I did have "Devon" included within the span of itemprop="name" but it makes no sense, since no service should be called "Cut and Blow Devon", or should it?

Anyway, then it got me thinking wouldn’t it just be better to use Article as the schema mark up?

<article itemscope itemtype="http://schema.org/Article">
    <h1 itemprop="name">Cut and Blow Devon</h1>
    <span itemprop="description">A funky Description will go here</span>
</article>

I appreciate everyone who has managed to read though that and now I’ll make the question a little more obvious: Would you recommend using Article or Product, and is it bad to use span PARTLY within a h1 to define the Schema.org name?

1
  • Actually, microdata exist to solve the kind of issue you describe: Tell search engines that they should not take the full content of <h1> as the product name, which would have been the best guess without microdata.
    – Tony
    Commented Jul 5, 2016 at 8:27

1 Answer 1

3

This is a bit subjective, but I don't believe Schema.org dicatates in anyway what tags the itemprop attributes can be added to, so I don't see any problem with your <h1><span itemprop="name">Cut and Blow</span> Devon</h1> approach. You could quite conceivably have something like this:

<h1>New for 2013: <span itemprop="name">Cut and Blow</span></h1>

which is basically the same thing, and I don't think anyone could consider that bad practice. Just imagine that when parsing the markup, the HTML tag the attribute is used on is irrelevant.

As for Product vs. Article, if the page is about a specific service offered by this company, I'd stick with Product. If the page is simply about the type of service, or just tangentially related to the service; then perhaps Article would more appropriate. You'll note that the Schema.org page for Product gives "Commodity services, like haircuts" as an example of the type.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.