Why doesn't the background color of the body tag change?

yotube
0

Issue

My HTML codes are like this:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Netflix Clone İnşası</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>

My some codes are here.

</body>
</html>

My CSS codes are as follows:

* {
margin: 0;
box-sizing: border-box;
};

body {
font-family: Arial, Helvetica, sans-serif;
background-color: black;
}

I could not understand where I made a mistake. However, this is a very simple process.


Solution

You had a semicolon in your CSS file on the wrong place.



* {
margin: 0;
box-sizing: border-box;
}/*;*/

body {
font-family: Arial, Helvetica, sans-serif;
background-color: black;
}

<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Netflix Clone İnşası</title>
</head>

<body>

My some codes are here.

</body>

</html>





Answered By - Plantt
Tags

Post a Comment

0Comments
Post a Comment (0)

#buttons=(Accept !) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Accept !
To Top