p هو العنصر المفضل لنصوص الفقرات في مواقع الويب. pهي اختصار لكلمة في "paragraph" (**وتعني فقرة**). يمكنك إنشاء عنصر الفقرة كالتالي: <p>I'm a p tag!</p> p أسفل العنصر h2 ، واكتب به هذا النص "Hello Paragraph". p.
testString: 'assert(($("p").length > 0), "Create an h2 element.");'
- text: يجب أن يحتوي العنصر p على النص التالي "Hello Paragraph".
testString: 'assert.isTrue((/hello(\s)+paragraph/gi).test($("p").text()), "Your p element should have the text "Hello Paragraph".");'
- text: تأكد من أن العنصر p لديه وسم إغلاق.
testString: 'assert(code.match(/<\/p>/g) && code.match(/<\/p>/g).length === code.match(/p element has a closing tag.");' ```