I hope that it's not a weird question, but lets assume I have the following html code:
<body>
<header>
<h1>JavaScript Date function</h1>
</header>
<main>
<p id="demo">This is a paragraph.</p>
</main>
</body>
I also have the following CSS code for this html:
html , body{
background-color: blue;
}
body{
background-color: white;
}
I wonder how come that everything except my header and paragraph is in blue, and only the header is white? Ain't all of the html file suppose to be white since the last background color attribute for the body matters in this instance?
Here is the image to show what you get:
Doesn't it all suppose to be in the same white color?