Let's have a look at the following HTML code. Write a selector that will highlight the first link with a red background color.
Pseudo-classes
Changing the link background
Report a typo
Write HTML and CSS code
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="style.css">
<meta charset="utf-8">
</head>
<body>
<a href="">Link to nowhere</a><br>
<a href="">Another link to nowhere</a>
</body>
</html>
Completed 1 of 2
Write a selector that will highlight the first link with a red background color
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.