--- id: 587d778c367417b2b2512aa9 title: Standardize Times with the HTML5 datetime Attribute challengeType: 0 videoUrl: https://scrimba.com/c/cmzMgtz forumTopicId: 301025 localeTitle: Стандартизировать время с атрибутом datetime HTML5 --- ## Description
Продолжая тему даты, HTML5 также представил элемент time вместе с атрибутом datetime для стандартизации времени. Это встроенный элемент, который может привязывать дату или время на странице. Действительный формат этой даты datetime атрибутом datetime . Это значение, доступное с помощью вспомогательных устройств. Это помогает избежать путаницы, заявляя стандартизированную версию времени, даже если она написана неформальным или разговорным образом в тексте. Вот пример: <p>Master Camper Cat officiated the cage match between Goro and Scorpion <time datetime="2013-02-13">last Wednesday</time>, which ended in a draw.</p>
## Instructions
Результаты опроса Camter Cat's Mortal Kombat в! Обведите тег time вокруг текста «Четверг, 15 сентября <sup> th </ sup>» и добавьте к нему атрибут datetime установленный в «2016-09-15».
## Tests
```yml tests: - text: 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. testString: assert(timeElement.length); - text: Your added time tags should wrap around the text "Thursday, September 15<sup>th</sup>". testString: assert(timeElement.length && $(timeElement).html().trim() === "Thursday, September 15th"); - text: Your added time tag should have a datetime attribute that is not empty. testString: assert(datetimeAttr && datetimeAttr.length); - text: Your added datetime attribute should be set to a value of 2016-09-15. testString: assert(datetimeAttr === "2016-09-15"); ```
## Challenge Seed
```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.

© 2018 Camper Cat
```
### After Tests
```html ```
## Solution
```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!

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.

```