--- id: bad87fee1348bd9aecf08801 title: Introduction to HTML5 Elements challengeType: 0 videoUrl: '' localeTitle: مقدمة إلى عناصر HTML5 --- ## الوصف
يقدم HTML5 مزيدًا من وسوم HTML الوصفية. تشمل تلك الوسوم header و footer nav و video و article و section وغيرها. تجعل هذه الوسوم كود HTML الخاص بك، أسهل في القراءة، وتساعد أيضًا في تحسين محركات البحث (SEO) وإمكانية الوصول. وسم main وهو احد اوسمة HTML5،وهو يساعد محركات البحث والمطورين الآخرين في العثور على المحتوى الرئيسي لصفحتك. ملحوظة
تتم تغطية العديد من وسوم HTML5 الجديدة وفوائدها في قسم "إمكانية الوصول التطبيقي".
## التعليمات
إنشئ عنصر p ثاني بعد العنصر p الموجود واضف له نص kitty ipsum التالي: Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched. قم بكتابة الفقرات بداخل وسمي بداية ونهائية للعنصر main.
## الاختبارات
```yml tests: - text: يجب ان يكون هنالك عنصرين p بهما نص Kitty Ipsum. testString: 'assert($("p").length > 1, "You need 2 p elements with Kitty Ipsum text.");' - text: تأكد من ان كل عناصر p لها وسم إغلاق. testString: 'assert(code.match(/<\/p>/g) && code.match(/<\/p>/g).length === code.match(/

p elements has a closing tag.");' - text: يجب أن يحتوي عنصر p على الكلمات القليلة الأولى من نص kitty ipsum text الإضافي المزود. testString: 'assert.isTrue((/Purr\s+jump\s+eat/gi).test($("p").text()), "Your p element should contain the first few words of the provided additional kitty ipsum text.");' - text: يجب أن يحتوي الكود على عنصر main واحد. testString: 'assert($("main").length === 1, "Your code should have one main element.");' - text: يجب أن يحتوي العنصر main على عنصرين فقرة كأطفال (اي بداخل العنصر). testString: 'assert($("main").children("p").length === 2, "The main element should have two paragraph elements as children.");' - text: يجب أن يأتي الوسم الافتتاحي main قبل علامة الفقرة الأولى. testString: 'assert(code.match(/

\s*?

/g), "The opening main tag should come before the first paragraph tag.");' - text: يجب أن يأتي وسم الإغلاق main بعد علامة فقرة الإغلاق الثانية. testString: 'assert(code.match(/<\/p>\s*?<\/main>/g), "The closing main tag should come after the second closing paragraph tag.");' ```

## Challenge Seed
```html

CatPhotoApp

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

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