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

1.5 KiB

id title challengeType videoUrl localeTitle
bad87fee1348bd9aedf08801 Inform with the Paragraph Element 0

Description

تعد العناصر p العنصر المفضل لنص الفقرة على مواقع الويب. p قصيرة في "الفقرة". يمكنك إنشاء عنصر فقرة مثل: <p>I'm ap tag!</p>

Instructions

قم بإنشاء عنصر p أسفل عنصر h2 ، وأعطه النص "Hello Paragraph".

Tests

tests:
  - text: قم بإنشاء عنصر <code>p</code> .
    testString: 'assert(($("p").length > 0), "Create a <code>p</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