2018-10-10 18:03:03 -04:00
---
id: bad87fee1348bd9aedf08801
title: Inform with the Paragraph Element
challengeType: 0
videoUrl: ''
2019-05-07 01:59:19 +03:00
localeTitle: 'الإعلام بإستخدام عنصر الفقرات'
2018-10-10 18:03:03 -04:00
---
2019-05-07 01:59:19 +03:00
## الوصف
<section id="description"> يعد العنصر <code>p</code> هو العنصر المفضل لنصوص الفقرات في مواقع الويب. <code>p</code>هي اختصار لكلمة في "paragraph" (**وتعني فقرة**). يمكنك إنشاء عنصر الفقرة كالتالي: <code><p>I' ;m a p tag!</p></code> </section>
2018-10-10 18:03:03 -04:00
2019-05-07 01:59:19 +03:00
## التعليمات
<section id="instructions"> قم بإنشاء عنصر <code>p</code> أسفل العنصر <code>h2</code> ، واكتب به هذا النص "Hello Paragraph". </section>
2018-10-10 18:03:03 -04:00
2019-05-07 01:59:19 +03:00
## الاختبارات
2018-10-10 18:03:03 -04:00
<section id='tests'>
```yml
tests:
2019-05-07 01:59:19 +03:00
- text: انشئ العنصر <code>p</code>.
testString: 'assert(($("p").length > 0), "Create an <code>h2</code> element.");'
- text: يجب أن يحتوي العنصر <code>p</code> على النص التالي "Hello Paragraph".
2018-10-10 18:03:03 -04:00
testString: 'assert.isTrue((/hello(\s)+paragraph/gi).test($("p").text()), "Your <code>p</code> element should have the text "Hello Paragraph".");'
2019-05-07 01:59:19 +03:00
- text: تأكد من أن العنصر <code>p</code> لديه وسم إغلاق.
2018-10-10 18:03:03 -04:00
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.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='html-seed'>
```html
<h1>Hello World</h1>
<h2>CatPhotoApp</h2>
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>