<p><time>10:00</time> a.m.</p>
<p>The party starts at <time datetime="18:00">6 PM </time>and runs until <time datetime="00:00">midnight</time>.</p>
<p>Our puppy was born at <time datetime="14:54">2:54 PM</time> on <time datetime="2006-07-08">July 8th, 2006</time>.</p>
<p>Libraries are closed for <time datetime="2019-01-21">Martin Luther King Day</time>.</p>
<p>First published on <time datetime="2014-09-05" itemprop="datePublished">September 5th, 2014</time>.</p>
<p>The concert should last at least <time datetime="PT2H30M">2h 30m</time>.</p>
<p>Estimated read time: <time datetime="PT5M">5 minutes</time>.</p>
<p><time>10:00</time> a.m.</p>
<p>The party starts at <time datetime="18:00">6 PM </time>and runs until <time datetime="00:00">midnight</time>.</p>
<p>Our puppy was born at <time datetime="14:54">2:54 PM</time> on <time datetime="2006-07-08">July 8th, 2006</time>.</p>
<p>Libraries are closed for <time datetime="2019-01-21">Martin Luther King Day</time>.</p>
<p>First published on <time datetime="2014-09-05" itemprop="datePublished">September 5th, 2014</time>.</p>
<p>The concert should last at least <time datetime="PT2H30M">2h 30m</time>.</p>
<p>Estimated read time: <time datetime="PT5M">5 minutes</time>.</p>
/* No context defined for this component. */
The HTML time
element represents a specific period in time.
time
element may include a datetime
attribute which is used to translate dates into a machine-readable format.datetime
attribute is not specified, the text content must be in one of the valid date/time formats, and must not have any element descendants.Control + Option
+ ←
or →
keys to navigate through content with screen reader.time
element will be read first, and then the value of the datetime
attribute, if present.datetime
attribute are not read out by all screen readers so consideration should be taken for these exceptions when writing markup. Hidden text can be added for clarity using the .u-sr-only
utility class.