November 27, 201213 yr Why do you need to use divisions on your website? Its a question that is on my assignment, help will be appreciated.
November 28, 201213 yr As Dap says, you don't need to use divs. If you want to place an inline element like "img" or "a" element somewhere on your page you can make it a block element and use positioning, margin, padding, etc. Many people get "divitis", using far too many divs especially lots of levels of nested divs. However, divs are a good idea if you want to hold blocks of items together so that you can apply positions or backgrounds to all of them as a group, for instance a header div (which in the new HTML5 can now be the new header element instead of a div with id or class of header) then a content div then a footer div, each containing lots of different elements.
Create an account or sign in to comment