A
A
Andrey Fedorov2016-04-04 12:51:39
HTML
Andrey Fedorov, 2016-04-04 12:51:39

Self-activity of schema.org breaks inner nirvana. How to fix openingHour?

Yandex recommends the following construction when describing the organization's working hours:

<time datetime="Mo 11:00-22:00" itemprop="openingHours">11:00-22:00</time>

However, w3c requires the time in the time tag to be in ISO8601 - "1997-07-16T19:20:30" format, intervals are not allowed.
I don’t want to lose the time of work in the snippet, but I want a 100% valid code.
Is there any way to make microdata better friends with the w3c validator?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mertana, 2016-04-05
@aliencash

<data itemprop="openingHours" value="Mo 11:00-22:00">11:00-22:00</data>

This is how the w3c validator does not swear, and the Yandex validator sees the markup.
PS
<meta itemprop="openingHours" content="Mo-Sa 11:00-14:30">Mon-Sat 11am - 2:30pm
<meta itemprop="openingHours" content="Mo-Th 17:00-21:30">Mon-Thu 5pm - 9:30pm

D
Dmitry, 2016-04-04
@mytmid

If Yandex digests the markup that it advises, then this is how it should be done.
There will be no bonuses for a 100% valid w3c code, which means you need to focus on the recommendations of search engines.
In general, don't worry about w3c...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question