/    Sign up×
Community /Pin to ProfileBookmark

DIV tags good or bad?

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

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@the_treeMar 13.2006 — 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.
Copy linkTweet thisAlerts:
@drhowarddrfineMar 13.2006 — The tree is correct.
Copy linkTweet thisAlerts:
@KravvitzMar 14.2006 — <div> elements are good. Just don't use them where there is a more semantically correct element available.
Copy linkTweet thisAlerts:
@susam_palMar 14.2006 — 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.-
[code=html]<div class="notes">This is some text</div>[/code]

Here notes is some class in CSS.
Copy linkTweet thisAlerts:
@pcthugMar 14.2006 — ^Not semantically correct. see Example:[CODE]<h1 class="style">This is a styled Heading. Eh!</h1>[/CODE]Should be used over:[CODE]<div class="style">
<p>This is a styled Heading. Eh!</p>
</div>[/CODE]
Infact, if there are no other styled H1 element's on the page you would'nt even need the [I]class="style"[/I] syntax
×

Success!

Help @bz38 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.27,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...