id selector

Report a typo

Find the element with an ID in HTML code. Complete the CSS code so that all written styles apply to this element.

Write HTML and CSS code
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Selectors</title>
</head>
<body>
<h1>My pets</h1>
<p>Cat</p>
<p id="border">Сanary</p>
<p>Dog</p>
</body>
</html>
Completed 1 of 2
All written styles apply to the HTML element with id
The code is valid
___

Create a free account to access the full topic