Direct descendant selector

Report a typo

Change the color of the heading by using a direct descendant selector.

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
___

Create a free account to access the full topic