--- id: bad87fee1348bd9aedf08805 title: Use CSS Selectors to Style Elements challengeType: 0 videoUrl: '' localeTitle: استخدم CSS Selectors إلى عناصر النمط --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert(!$("h2").attr("style"), "Remove the style attribute from your h2 element.");' - text: '' testString: 'assert($("style") && $("style").length > 1, "Create a style element.");' - text: يجب أن يكون عنصر h2 باللون الأزرق. testString: 'assert($("h2").css("color") === "rgb(0, 0, 255)", "Your h2 element should be blue.");' - text: تأكد من أن تصريح h2 الخاص بأنماط h2 الخاص بك صالح مع قوس منقوطة وإغلاق. testString: 'assert(code.match(/h2\s*\{\s*color\s*:.*;\s*\}/g), "Ensure that your stylesheet h2 declaration is valid with a semicolon and closing brace.");' - text: '' testString: 'assert(code.match(/<\/style>/g) && code.match(/<\/style>/g).length === (code.match(//g) || []).length, "Make sure all your style elements are valid and have a closing tag.");' ```
## Challenge Seed
```html

CatPhotoApp

Click here to view more cat photos.

A cute orange cat lying on its back.

Things cats love:

  • cat nip
  • laser pointers
  • lasagna

Top 3 things cats hate:

  1. flea treatment
  2. thunder
  3. other cats


```
## Solution
```js // solution required ```