Jump to content
  • 0

Проблема в микроразметке


alleclf
 Share

Question

Вот проблемный код:

<figure itemscope itemprop="image" itemtype="http://schema.org/ImageObject">
<picture>
<img itemprop="url contentUrl" src="http://nebo.top/data/_index-block/bg-index.jpg" srcset="http://nebo.top/data/_index-block/bg-index.jpg" alt="небо" title="небо">
</picture>
<meta itemprop="width" content="100">
<meta itemprop="height" content="100">
</figure>

 

Яндекс вебмастер выдаёт ошибку по всем картинкам в таком виде и не индексирует их:

  Цитата

Формат документа не поддерживается индексирующим роботом. Обратите внимание на корректность заголовка Content-Type и на содержимое документа.

Expand  

 

Валидатор выдаёт вот такое сообщение по этому коду:

  Цитата

XML-файл не соответствует схеме.
Строка: 1 Позиция: 19
Подробнее
<detail>Attribute name "itemscope" associated with an element type "figure" must be followed by the ' = ' character.</detail>

Expand  

 

Помогите пожалуйста разобраться в чём тут проблема.

Edited by alleclf
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
  On 12/27/2018 at 11:16 AM, alleclf said:

<figure itemscope itemprop="image" itemtype="http://schema.org/ImageObject">

Expand  

Попробуй image на photo поменять.

  On 12/27/2018 at 11:16 AM, alleclf said:

<img itemprop="url contentUrl" src="http://nebo.top/data/_index-block/bg-index.jpg" srcset="http://nebo.top/data/_index-block/bg-index.jpg" alt="небо" title="небо">

Expand  

или url на photo

contentUrl не лишний?

Edited by rzet777
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy