1.7 KiB
1.7 KiB
id | title | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
bad87fee1348bd9aedf08801 | Inform with the Paragraph Element | 0 | الإعلام بإستخدام عنصر الفقرات |
الوصف
p
هو العنصر المفضل لنصوص الفقرات في مواقع الويب. p
هي اختصار لكلمة في "paragraph" (**وتعني فقرة**). يمكنك إنشاء عنصر الفقرة كالتالي: <p>I'm a p tag!</p>
التعليمات
p
أسفل العنصر h2
، واكتب به هذا النص "Hello Paragraph". الاختبارات
tests:
- text: انشئ العنصر <code>p</code>.
testString: 'assert(($("p").length > 0), "Create an <code>h2</code> element.");'
- text: يجب أن يحتوي العنصر <code>p</code> على النص التالي "Hello Paragraph".
testString: 'assert.isTrue((/hello(\s)+paragraph/gi).test($("p").text()), "Your <code>p</code> element should have the text "Hello Paragraph".");'
- text: تأكد من أن العنصر <code>p</code> لديه وسم إغلاق.
testString: 'assert(code.match(/<\/p>/g) && code.match(/<\/p>/g).length === code.match(/<p/g).length, "Make sure your <code>p</code> element has a closing tag.");'
Challenge Seed
<h1>Hello World</h1>
<h2>CatPhotoApp</h2>
Solution
// solution required