I have just started writing in HTML5 and learning CSS as I go along. The book I am using tells me that I should create a
<div> tag and assign an id tag like #wrapper to everything inside the body to make it a certain width. I tried assigning that id to the body tag it did the same thing, however, it was a little bit wider. What is the difference and which one is correct?
It's possible you have
It's possible you have misinterpreted the instructions.
Id's need to be unique, so only one element should have a wrapper.
div's by default will be full width block elements, so you only need to set width if you change the display property or float it.