WebmasterForums.NET - Webmaster Forums & Directory
 

Go Back   WebmasterForums.NET - Webmaster Forums & Directory > Design and Development > Site Programming and Coding
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Site Programming and Coding Have a problem with some code on your site? Ask our other members for advice and help.

Reply
 
Thread Tools Display Modes
Old 02-14-2006, 04:08 PM   #1
hwang
Senior Member
 
Join Date: Feb 2006
Posts: 104
hwang is on a distinguished road
Default <div> tags??

Hi people!

I wanted to ask what is the <div> tags function in a Html document?? I tried them sometimes, but seems not working, or do, but I don't know what those tags do in the document. Can anyone explain me about them?

Thanks for reading!
hwang is offline   Reply With Quote
Old 02-14-2006, 05:00 PM   #2
Morphine
Junior Member
 
Join Date: Feb 2006
Location: Stockholm, Sweden
Posts: 18
Morphine is on a distinguished road
Default

The div element stands for "Division", all it does is split up your document (or existing divisions) into divisions.

Code:
<div>This is one division.</div>
<div>
   Here is another division.
   <div>Here is a division inside another division.</div>
</div>
It's mainly used together with JavaScript and CSS where you can target groups of content or code through them.

You'll also stumble upon another element called "span" (unless you have already), these are used for the same things as div's (pretty much) but they are in-line. I'll explain those things (if you want me to) at another time though, I'm at a hurry and have to go. :(

Last edited by Morphine : 02-15-2006 at 07:14 AM.
Morphine is offline   Reply With Quote
Old 02-15-2006, 03:10 AM   #3
hwang
Senior Member
 
Join Date: Feb 2006
Posts: 104
hwang is on a distinguished road
Default

Morphine, thank you so much for explanation about <div> tags!!
I understand everything what you said perfectly.
Thanks really!
hwang is offline   Reply With Quote
Old 02-15-2006, 07:15 AM   #4
Morphine
Junior Member
 
Join Date: Feb 2006
Location: Stockholm, Sweden
Posts: 18
Morphine is on a distinguished road
Default

Anytime.
Morphine is offline   Reply With Quote
Old 02-15-2006, 08:47 PM   #5
John D
Senior Member
 
Join Date: Jan 2002
Posts: 402
John D will become famous soon enoughJohn D will become famous soon enough
Default

Great post

Just added good reputation
__________________

DeuceAce - A mature poker forum
Read my blog!
John D is offline   Reply With Quote
Old 02-15-2006, 08:56 PM   #6
a1whs.com
Senior Member
 
Join Date: Feb 2006
Location: With ur wife
Posts: 156
a1whs.com is on a distinguished road
Default

Quote:
Originally Posted by John D
Great post

Just added good reputation
O darn didnt notice that it was functional. But how many users use it these days? I think most are lazy to click on it , but not lazy when they are mad at someone .
__________________
Hosting Starting From 1.5$ per month for 3 gb Bw .
2 gb Storage 38gb Bw Reseller for only $18.95.
Cpanel/Fantasico/100mbps Dual Opteron Server.
A1 Web Hosting Solutions ||Free Hosting and More Freebies|| Jobs Directory for your Jobs Needs
a1whs.com is offline   Reply With Quote
Old 02-15-2006, 09:37 PM   #7
John D
Senior Member
 
Join Date: Jan 2002
Posts: 402
John D will become famous soon enoughJohn D will become famous soon enough
Default

Tell me about it...

I might change it so its not anonymous...If someone has something to say let others know
With anon rep I think a lot of people just leave random and stupid rep because they think people won't know its from them.
__________________

DeuceAce - A mature poker forum
Read my blog!
John D is offline   Reply With Quote
Old 02-15-2006, 09:55 PM   #8
a1whs.com
Senior Member
 
Join Date: Feb 2006
Location: With ur wife
Posts: 156
a1whs.com is on a distinguished road
Default

No Please do not enable anon. reputation as the same user can keep on clicking on it again and again resulting in fake repos, although they do not matter much to me But it would be a disaster.
__________________
Hosting Starting From 1.5$ per month for 3 gb Bw .
2 gb Storage 38gb Bw Reseller for only $18.95.
Cpanel/Fantasico/100mbps Dual Opteron Server.
A1 Web Hosting Solutions ||Free Hosting and More Freebies|| Jobs Directory for your Jobs Needs
a1whs.com is offline   Reply With Quote
Old 02-15-2006, 10:09 PM   #9
John D
Senior Member
 
Join Date: Jan 2002
Posts: 402
John D will become famous soon enoughJohn D will become famous soon enough
Default

Quote:
I might change it so its not anonymous
Rep system is anonymous by default

I don't like it being anon.
__________________

DeuceAce - A mature poker forum
Read my blog!
John D is offline   Reply With Quote
Old 02-15-2006, 10:18 PM   #10
rebelagent
Junior Member
 
Join Date: Feb 2006
Posts: 13
rebelagent is on a distinguished road
Default

I'd like to add that divs are also handy when combined with css so you don't have to insert tables. This makes some sites available via WAP or the mobile internet.
rebelagent is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 02:29 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
WebmasterForums.NET - Webmaster Forums & Directory