2

I have the following snippet of code in a website. When I run this through the Google Structured Data Testing Tool, it doesn’t pick up the phone number. I’m not sure where I’m going wrong:

<div class="telephone-number" itemscope itemtype="http://schema.org/Organization">
    <p>Call Us: <a itemprop="telephone" href="tel:07749918143">07749 918 143</a></p>
</div>

The error generated by the validator is:

Node is empty. Double check that this is desired and consider removing.

Can someone tell me where I’m going wrong please?

unor
  • 92,415
  • 26
  • 211
  • 360
Andy Mills
  • 135
  • 2
  • 13

1 Answers1

4

Schema.org’s telephone property expects Text as value, not a URL.

(There’s a feature request to change this.)

So you could use something like this:

<div itemscope itemtype="http://schema.org/Organization">
    <p>Call Us: <a href="tel:07749918143"><span itemprop="telephone">07749 918 143</span></a></p>
</div>
unor
  • 92,415
  • 26
  • 211
  • 360