p
العنصر المفضل لنص الفقرة على مواقع الويب. p
قصيرة في "الفقرة". يمكنك إنشاء عنصر فقرة مثل: <p>I'm ap tag!</p>
p
أسفل عنصر h2
، وأعطه النص "Hello Paragraph". p
.
testString: 'assert(($("p").length > 0), "Create a p
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.");' ```