In Schema.org, I do not understand the difference between name and headline. I try to apply it to a page that there is only a blog post. In this case, what would be the name and the headline?

I tried the Google tool google.com/webmasters/markup-helper/ and I selected the h1 of the post as the name.

Then I go to the testing tool: https://search.google.com/structured-data/testing-tool and it gives me an error in red:

A value for the headline field is required

So, it seems that I can not ignore one of them.

What is the name and headline in a blog post?

<div itemscope itemtype="http://schema.org/Article" class="entrada">

<img itemprop="image" class="imatge" src="../externs/img/1.png">
<h1 itemprop="name" class="titol_post">Title of the post</h1>
<div itemprop="datePublished" content="2016-01-07" class="data"></div>

<div itemprop="articleBody" class="text">       
    <p>This is the body of the post</p>

<span itemprop="author" itemscope itemtype="http://schema.org/Person"><h2 itemprop="name">NM.</h2></span>

</div><!-- end esquema Article -->

You can use both properties (headline and name) for the same content.

<h1 itemprop="headline name">Title of the post</h1>

Google requires headline for their Articles search feature (and it doesn’t seem to use name for anything else). If you don’t care about this feature, you could of course ignore the error.

My related answers on Stack Overflow:

  • A similar question is when the author and the publisher is the same. Like in my blog. should I use itemprop="author publisher" ? – Nrc Aug 18 '16 at 16:01
  • @Nrc: Yes. Note that using multiple properties in the same itemprop attribute is, semantically, the same as if using multiple elements (each with its own itemprop), repeating the value. -- So whenever two or more properties (of the same entity) would have the same value, you can use them together in one itemprop. – unor Aug 18 '16 at 16:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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