W3C home > Mailing lists > Public > www-validator@w3.org > February 2016

W3 Markup Validator - HTML5 <time> tag

From: testing Cakewalk Websites <testing8467@cakewalkwebsites.com>
Date: Mon, 29 Feb 2016 09:47:09 -0800
Message-Id: <F7B3EA0E-CA64-43A9-9DF6-1F82AC8828D4@cakewalkwebsites.com>
To: www-validator@w3.org
Hi,

When correctly adding structured data for opening hours according the schema.org <http://schema.org/> and tested with the Google Structured Data Testing Tool <https://developers.google.com/structured-data/testing-tool/>: (enter this URL: http://www.oldtownvethospital.com <http://www.oldtownvethospital.com/>)
 <p itemscope itemtype="http://schema.org/VeterinaryCare <http://schema.org/VeterinaryCare>"><time itemprop="openingHours" datetime="Mo-Fr 08:30-17:30">Mon - Fri: 8:30 am - 5:30 pm</time></p>
and shows up as “All good” in “VeterinaryCare (1)”.


The “Nu Html Checker” shows this as an error. According to W3schools <http://www.w3schools.com/tags/att_time_datetime.asp>, the <time> attribute cannot contain day names (Monday - Sunday).

Error: Bad value Mo-Fr 08:30-17:30 for attribute datetime on element time <http://www.w3.org/html/wg/drafts/html/master/single-page.html#the-time-element>: The literal did not satisfy the time-datetime format.
From line 222, column 79; to line 222, column 137
naryCare"><time itemprop="openingHours" datetime="Mo-Fr 08:30-17:30">Mon - 
Syntax of time-datetime:
One of the following: month <https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-month-string>, date <https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-date-string>, yearless date <https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-yearless-date-string>, time <https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-time-string>, local date and time <https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-local-date-and-time-string>, time-zone offset <https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-time-zone-offset-string>, global date and time <https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-global-date-and-time-string>, week <https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-week-string>, non-negative integer <https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-non-negative-integer>, or duration <https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-duration-string>. For more information and examples, see the section on the datetime value in the HTML specification <https://html.spec.whatwg.org/multipage/text-level-semantics.html#datetime-value>.

Thank you for your time

Pierre Cobbaert
Web Design & Programming

 <http://cakewalkwebsites.com/>

 <http://cakewalkwebsites.com/>Cakewalk websites <http://cakewalkwebsites.com/> <http://promorockit.com/>
Received on Monday, 29 February 2016 22:49:49 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 3 March 2016 12:21:40 UTC