Click here to view more cat photos.
Things cats love:
- cat nip
- laser pointers
- lasagna
Top 3 things cats hate:
- flea treatment
- thunder
- other cats
div
، المعروف أيضًا باسم عنصر القسمة ، هو حاوية للأغراض العامة للعناصر الأخرى. ربما يكون عنصر div
هو أكثر عناصر HTML شيوعًا على الإطلاق. تمامًا مثل أي عنصر آخر غير الإغلاق الذاتي ، يمكنك فتح عنصر div
باستخدام <div>
وإغلاقه في سطر آخر باستخدام </div>
. div
واحد. تلميح: حاول وضع الخاص بك افتتاح div
العلامة فوق بك "القطط الأمور الحب" p
العنصر الخاص بك وإغلاق div
الوسم الخاص بك بعد إغلاق ol
العلامة بحيث أن كلا من القوائم الخاصة بك هي واحدة ضمن div
. p
داخل عنصر div
الخاص بك.
testString: 'assert($("div").children("p").length > 1, "Nest your p
elements inside your div
element.");'
- text: عش ul
داخل عنصر div
الخاص بك.
testString: 'assert($("div").children("ul").length > 0, "Nest your ul
element inside your div
element.");'
- text: قم ol
عنصر ol
الخاص بك داخل عنصر div
الخاص بك.
testString: 'assert($("div").children("ol").length > 0, "Nest your ol
element inside your div
element.");'
- text: تأكد من أن عنصر div
يحتوي على علامة إغلاق.
testString: 'assert(code.match(/<\/div>/g) && code.match(/<\/div>/g).length === code.match(/div
element has a closing tag.");'
```
## Challenge Seed
Click here to view more cat photos.
Things cats love:
Top 3 things cats hate: