Divs are a great way in which to format your web page. The important thing to remember is that the part that you 'set' must go into the 'Head' tags and the Div tag goes into the body. Click here to see an example.
The Styles work in the same way but you can use several styles on one page and only one div.