Is it bad to use many divs on one page?

This is the first time I code HTML, CSS correctly. in my code, I used a whole bunch of divs for position, as well as for placing content in place. I am not sure if I am coding correctly. I have too much content on one page. here is the link to my code i used.

http://jsfiddle.net/32ShZ/

can you suggest. is it really bad in structure and form?

+5
source share
2 answers

Absolutely not. You do not want to go overboard, though (it is called “soup soup” when you do this). If you find that the div has no purpose but to hold the background image or clear the float, etc., This means that you did something wrong. Using wrappers (for example, 3 depth levels of div tags for a content area with some backgrounds, etc.), you can correctly execute any layout you need without resorting to "soup-soup". See http://www.digitalperfections.net/ for an example of good (x) HTML with lots of div tags.

To further expand and answer the question about your code, I specifically noticed one thing right off the bat: <div id="divider"></div>- this is bad, because you use this div solely for non-semantic purposes (only for decoration).

+6

- HTML . CSS. , divs , . . , (HTML), , .

+1

All Articles