: Schema.org 'name' and 'headline' 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
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: 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>
</div>
<span itemprop="author" itemscope itemtype="http://schema.org/Person"><h2 itemprop="name">NM.</h2></span>
</div><!-- end esquema Article -->
More posts by @Miguel251
1 Comments
Sorted by latest first Latest Oldest Best
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:
to the question News item in Schema.org
to the question What is the name property in schema.org?
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.