Click to See Complete Forum and Search --> : DIV tags good or bad?


bz38
03-13-2006, 05:47 AM
Greetings!

This is my first post, so I would like to say hi to everyone who participates in these forums. I am currently going to college for an Applied Science degree in Visual communications, and recently my professor introduced the class to DIV tags and layers. He told the class in so many words that DIV tags, layers and CSS is all we should be using for development. I have read a few articles on layers and have received mixed reviews. I completely agree with his CSS statement, but now am not quite sure about the layers statement.

Any words of wisdom or personal experience will be most appreciated.

Thanks!

Bryan

the tree
03-13-2006, 06:31 AM
Forget the word layers ever existed, which if you're being strict, it never did.
Dividers have exactly as much merit as every other HTML element, no more and no less.
CSS is merely for presentation, there is a lot more to development than making the site prettyful.

drhowarddrfine
03-13-2006, 06:52 AM
The tree is correct.

Kravvitz
03-13-2006, 07:36 PM
<div> elements are good. Just don't use them where there is a more semantically correct element available.

susam_pal
03-13-2006, 08:13 PM
DIV tags are very essential when you try to format various sections of your page in different manners.

In such cases DIV tag are used along with the class attribute whose value is some CSS class.

e.g.-
<div class="notes">This is some text</div>

Here notes is some class in CSS.

pcthug
03-13-2006, 08:13 PM
^Not semantically correct. see Example:<h1 class="style">This is a styled Heading. Eh!</h1>Should be used over:<div class="style">
<p>This is a styled Heading. Eh!</p>
</div>Infact, if there are no other styled H1 element's on the page you would'nt even need the class="style" syntax