--- id: 587d778c367417b2b2512aa9 title: Standardize Times with the HTML5 datetime Attribute challengeType: 0 videoUrl: '' localeTitle: توحيد الأوقات باستخدام سمة datetime HTML5 --- ## Description
استمرارًا بموضوع التاريخ ، قدم HTML5 أيضًا عنصر time مع سمة 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
نتائج الاستطلاع "مورتال كومبات" كامبر كات في! لف علامة time حول النص "الخميس 15 سبتمبر <sup> th </ sup>" وأضف سمة datetime لتعيينها على "2016-09-15".
## Tests
```yml tests: - text: يجب أن تلتف علامات time حول النص "الخميس 15 سبتمبر <sup> th </ sup>". testString: 'assert($("time").text().match(/Thursday, September 15th/g), "Your time tags should wrap around the text "Thursday, September 15<sup>th</sup>".");' - text: يجب أن تحتوي علامة time الخاصة بك على سمة datetime غير فارغة. testString: 'assert($("time").attr("datetime"), "Your time tag should have a datetime attribute that is not empty.");' - text: يجب تعيين السمة datetime الخاصة بك إلى قيمة 2016-09-15. testString: 'assert($("time").attr("datetime") === "2016-09-15", "Your datetime attribute should be set to a value of 2016-09-15.");' - text: تأكد من أن عنصر time يحتوي على علامة إغلاق. testString: 'assert(code.match(/<\/time>/g) && code.match(/<\/time>/g).length === 4, "Make sure your time element has a closing tag.");' ```
## 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.

```
## Solution
```js // solution required ```