Computer scienceFrontendCSSSelectors in Depth

Attribute selectors and Universal selector

Select all

Report a typo

Write CSS code using only one {...} with a single selector to make the entire text on the page green.

Write HTML and CSS code
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Texts</title>
</head>
<body>
<header>...</header>
<section>
<h1>I want to be green.</h1>
<p>And I want to be green.</p>
</section>
<footer>And we all have a right to be green.</footer>
</body>
</html>
Completed 1 of 2
All text on the page is green.
The code is valid.
___

Create a free account to access the full topic