freeCodeCamp/curriculum/challenges/arabic/01-responsive-web-design/basic-html-and-html5/inform-with-the-paragraph-e...

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> على النص التالي &quot;Hello Paragraph&quot;.
    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