Make all headings except the second one red using specificity. Write a new rule with a selector pointing to headings. Try to place it before and after the existing rule with the #second selector, compare the results.
What is Cascading?
Blue and red
Report a typo
Write HTML and CSS code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
</head>
<body>
<h3>The first heading.</h3>
<h3 id="second">The second heading.</h3>
<h3>The third heading.</h3>
</body>
</html>
Completed 2 of 3
Other two headings are red.
The code is valid.
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.