So lets assume that we want to set up a simple webpage with a background
You would normally start with a
DOCTYPE is good practice (though it isn’t required) as the tag tells the browser that we are using html5 and not older html versions.
Next, we want to set up the general webpage structure.
Now with that done, you should use css to make your background appear. Note: This is done within the style tag
Now notice how I didn’t put the period? That is because the period would indicate that we are styling a class, in this case we are not. We are, however, styling the body tag.
This is mainly all that is wrong with your css code compared to mine. Happy Coding!