Answer the question
In order to leave comments, you need to log in
How to properly use schema.org microdata?
Hello! I want to put micromarking on the site of aphorisms ... I ask for the help of specialists, did I understand correctly ...
As far as I understood correctly, for an aphorism (title, picture, text, author, comments) it suits me - ruschema.org/Article
Do I understand correctly that microdata for example:
<div itemscope itemtype="http://schema.org/Painting">
<h1 itemprop="name">Портрет Гарсиа Лорки</h1>
<img src="http://uploads8.wikipaintings.org/images/salvador-dali/portrait-of-garcia-lorca.jpg!Blog.jpg" alt="Портрет Гарсиа Лорки - Сальвадор Дали"
title="Портрет Гарсиа Лорки - Сальвадор Дали" />
<a href="/es/salvador-dali" itemprop="author">Сальвадор Дали</a>
<span itemprop="genre">Портрет</span>
<span itemprop="description">Портрет Федерико Гарсиа Лорки, выполненный в Café de Oriente. Мадрид. (Бумага, чернила. 1924 г.)</span>
</div>
<title>Весь Мир театр... или Цирк?</title>
<img>...<img>
<p>Когда Шекспир писал, что «весь мир — театр», он еще ничего не знал о цирке...
<div>камменты...<div>
и дальше микроразметка:
<div itemscope itemtype="http://schema.org/Painting">
<h1 itemprop="name">Портрет Гарсиа Лорки</h1>
<img src="http://uploads8.wikipaintings.org/images/salvador-dali/portrait-of-garcia-lorca.jpg!Blog.jpg" alt="Портрет Гарсиа Лорки - Сальвадор Дали"
title="Портрет Гарсиа Лорки - Сальвадор Дали" />
<a href="/es/salvador-dali" itemprop="author">Сальвадор Дали</a>
<span itemprop="genre">Портрет</span>
<span itemprop="description">Портрет Федерико Гарсиа Лорки, выполненный в Café de Oriente. Мадрид. (Бумага, чернила. 1924 г.)</span>
</div>
<article itemscope itemtype="http://schema.org/Article">
<meta itemprop="name" content='@Model.TitleBL' />
<meta itemprop="inLanguage" content="ru" />
<meta itemprop="articleBody" content='@Model.TextBL' />
<meta itemprop="author" content='@Model.avtor' />
<meta itemprop="publisher" content='@Model.user_nikname' />
if (Model.PostPicture != null) { <meta itemprop="image" content='~/Images/Data/Posts/@Model.PostPicture' /> }
<meta itemprop="url" content='@Url.Action("AphorismDetail", "Record", new { id = @Model.idBL })' />
</article>
Answer the question
In order to leave comments, you need to log in
Micro-markup should not be created just for the sake of “micro-markup”, it should be tied to the structure of the html document, and use the data that is initially present in the design and layout. That is, you should not do additional markup for this.
And yes, the presence of all the attributes listed for the "article" schema is optional.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question