1
I wanted to know how to do so that when I click the H1 button change to the red color, only with css
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
button:active + h1 {
color: red;
}
</style>
</head>
<body>
<h1>OI</h1>
<button>X</button>
</body>
</html>
Show! very good. Thanks for your help.
– Richard Santos