Change the color of the heading by using a direct descendant selector.
Contextual selectors
Direct descendant selector
Report a typo
Write HTML and CSS code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>Code challenge</title>
</head>
<body>
<!-- Add the heading -->
<!-- Add paragraph -->
</body>
</html>
Completed 0 of 3
Add second-level heading
Add paragraph
___
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.