Problem description:
Applying background to
Expected behavior:
The background change should be only inside the div.
Actual behavior:
It changes the whole background, in fact it covers everything on the page with solid color.
Steps to reproduce:
THIS IS MY HTML:
<!DOCTYPE html>
<html>
<head>
<title>My first web</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>DIVS AND SPANS</h1>
<div><p>I'm inside paragraph 1</p></div>
<div><p>I'm inside paragraph 2</p></div>
</body>
</html>
THIS IS MY CSS:
div {background: hotpink;}
Bug appears at this link:
https://replit.com/@ABSGAMES/Clase-de-html#index.html
Browser/OS/Device:
Chrome
Mojave 10.14.6
Mcbook Pro