Why does setting the background color for my body in CSS ignore the styles that come after it? Can someone explain what is causing this issue and how to resolve it?
body{
background-color:gray;
};
h1 {
text-align:center;
}
<html>
<head>
</head>
<body>
<h1>heading</h1>
</body>
</html>