---
id: 587d778c367417b2b2512aa9
title: Standardize Times with the HTML5 datetime Attribute
challengeType: 0
videoUrl: 'https://scrimba.com/c/cmzMgtz'
forumTopicId: 301025
dashedName: standardize-times-with-the-html5-datetime-attribute
---
# --description--
Continuing with the date theme, HTML5 also introduced the `time` element along with a `datetime` attribute to standardize times. The `time` element is an inline element that can wrap a date or time on a page. A `datetime` attribute holds a valid format of that date. This is the value accessed by assistive devices. It helps avoid confusion by stating a standardized version of a time, even if it's informally or colloquially written in the text.
Here's an example:
```html
Master Camper Cat officiated the cage match between Goro and Scorpion , which ended in a draw.
```
# --instructions--
Camper Cat's Mortal Kombat survey results are in! Wrap a `time` tag around the text `Thursday, September 15th` and add a `datetime` attribute to it set to `2016-09-15`.
# --hints--
Your code should have a `p` element which includes the text `Thank you to everyone for responding to Master Camper Cat's survey.` and include a `time` element.
```js
assert(timeElement.length);
```
Your added `time` tags should wrap around the text `Thursday, September 15th`.
```js
assert(
timeElement.length &&
$(timeElement).html().trim() === 'Thursday, September 15th'
);
```
Your added `time` tag should have a `datetime` attribute that is not empty.
```js
assert(datetimeAttr && datetimeAttr.length);
```
Your added `datetime` attribute should be set to a value of `2016-09-15`.
```js
assert(datetimeAttr === '2016-09-15');
```
# --seed--
## --after-user-code--
```html
```
## --seed-contents--
```html
Tournaments
Mortal Kombat Tournament Survey Results
Thank you to everyone for responding to Master Camper Cat's survey. The best day to host the vaunted Mortal Kombat tournament is Thursday, September 15th. May the best ninja win!
Comments:
Posted by: Sub-Zero on
Johnny Cage better be there, I'll finish him!
Posted by: Doge on
Wow, much combat, so mortal.
Posted by: The Grim Reaper on
Looks like I'll be busy that day.
```
# --solutions--
```html
Tournaments
Mortal Kombat Tournament Survey Results
Thank you to everyone for responding to Master Camper Cat's survey. The best day to host the vaunted Mortal Kombat tournament is . May the best ninja win!