testString: 'assert(!$("h2").attr("style"), "Remove the style attribute from your <code>h2</code> element.");'
- text: ''
testString: 'assert($("style") && $("style").length > 1, "Create a <code>style</code> element.");'
- text: يجب أن يكون عنصر <code>h2</code> باللون الأزرق.
testString: 'assert($("h2").css("color") === "rgb(0, 0, 255)", "Your <code>h2</code> element should be blue.");'
- text: تأكد من أن تصريح <code>h2</code> الخاص بأنماط <code>h2</code> الخاص بك صالح مع قوس منقوطة وإغلاق.
testString: 'assert(code.match(/h2\s*\{\s*color\s*:.*;\s*\}/g), "Ensure that your stylesheet <code>h2</code> declaration is valid with a semicolon and closing brace.");'
- text: ''
testString: 'assert(code.match(/<\/style>/g) && code.match(/<\/style>/g).length === (code.match(/<style((\s)*((type|media|scoped|title|disabled)="[^"]*")?(\s)*)*>/g) || []).length, "Make sure all your <code>style</code> elements are valid and have a closing tag.");'