473,578 Members | 2,845 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

'div id' vs 'div class'

hello,

can anyone tell me or direct me where can I find explanation about
difference between <div id=..> and <div class=..>

TNX
Jul 20 '05 #1
48 7277
dr. zoidberg wrote:
can anyone tell me or direct me where can I find explanation about
difference between <div id=..> and <div class=..>


The best place to start is wherever you learnt HTML and CSS. Then follow it
up by reading the specifications:

<URL:http://www.w3.org/TR/html401/struct/global.html#h-7.5.2>

<URL:http://www.w3.org/TR/REC-CSS2/selector.html>

Then, if you still have problems understanding, use Google:

<URL:http://groups.google.c om/groups?q=class+ id+group%3Acomp .infosystems.ww w.authoring.sty lesheets>

<URL:http://groups.google.c om/groups?selm=CLK dnX48QbsxO8miRV n-vg%40giganews.c om>

Also see:

<URL:http://www.catb.org/~esr/faqs/smart-questions.html# before>

--
Jim Dabell

Jul 20 '05 #2

"dr. zoidberg" <zo*@example.or g> schreef in bericht
news:c5******** ****@ID-93631.news.uni-berlin.de...
hello,

can anyone tell me or direct me where can I find explanation about
difference between <div id=..> and <div class=..>

TNX


You know about usenet,
you know enough about CSS to ask this question in this newsgroup
but you don't know where or how to find an answer????

Jakob


Jul 20 '05 #3
dr. zoidberg wrote:
can anyone tell me or direct me where can I find explanation about
difference between <div id=..> and <div class=..>


The best place to start is wherever you learnt HTML and CSS. Then follow it
up by reading the specifications:

<URL:http://www.w3.org/TR/html401/struct/global.html#h-7.5.2>

<URL:http://www.w3.org/TR/REC-CSS2/selector.html>

Then, if you still have problems understanding, use Google:

<URL:http://groups.google.c om/groups?q=class+ id+group%3Acomp .infosystems.ww w.authoring.sty lesheets>

<URL:http://groups.google.c om/groups?selm=CLK dnX48QbsxO8miRV n-vg%40giganews.c om>

Also see:

<URL:http://www.catb.org/~esr/faqs/smart-questions.html# before>

--
Jim Dabell

Jul 20 '05 #4
http://www.yourhtmlsource.com/styles...tml#CLASSESIDS

"dr. zoidberg" <zo*@example.or g> wrote in message
news:c5******** ****@ID-93631.news.uni-berlin.de...
hello,

can anyone tell me or direct me where can I find explanation about
difference between <div id=..> and <div class=..>

TNX

Jul 20 '05 #5

"dr. zoidberg" <zo*@example.or g> schreef in bericht
news:c5******** ****@ID-93631.news.uni-berlin.de...
hello,

can anyone tell me or direct me where can I find explanation about
difference between <div id=..> and <div class=..>

TNX


You know about usenet,
you know enough about CSS to ask this question in this newsgroup
but you don't know where or how to find an answer????

Jakob


Jul 20 '05 #6
http://www.yourhtmlsource.com/styles...tml#CLASSESIDS

"dr. zoidberg" <zo*@example.or g> wrote in message
news:c5******** ****@ID-93631.news.uni-berlin.de...
hello,

can anyone tell me or direct me where can I find explanation about
difference between <div id=..> and <div class=..>

TNX

Jul 20 '05 #7
"dr. zoidberg" <zo*@example.or g> wrote:
can anyone tell me or direct me where can I find explanation about
difference between <div id=..> and <div class=..>


http://www.w3.org/TR/html401/struct/global.html#h-7.5.2

--
Spartanicus
Jul 20 '05 #8
"dr. zoidberg" <zo*@example.or g> wrote:
can anyone tell me or direct me where can I find explanation about
difference between <div id=..> and <div class=..>


http://www.w3.org/TR/html401/struct/global.html#h-7.5.2

--
Spartanicus
Jul 20 '05 #9
Spartanicus <me@privacy.net > wrote:
"dr. zoidberg" <zo*@example.or g> wrote:
can anyone tell me or direct me where can I find explanation about
difference between <div id=..> and <div class=..>


http://www.w3.org/TR/html401/struct/global.html#h-7.5.2


As ever, W3C is always confusing.

"Note that the French "msg1" and the English "msg1" may not appear in
the same document since they share the same id value. Authors may make
further use of the id attribute to refine the presentation of
individual messages, make them target anchors, etc."

Etc? And whether or not they'd wish it, politics aside, the very
example, above, suggests it's in the very self-same document. What the
authors of these mean, and what they write, are often not the same.
They can be very specific, even pedantic, in explaining things on ngs.
I've seen that in other areas. But the documents tend to be almost
written in a shorthand, with much consistency and detail omitted.

And yet aren't these the norms, supposedly, for criticisms of IE, and
even NN (if anyone still uses it), for not being 'standards
compliant'?

Take the pre.example. It's described this way:

"The document is to include a number of preformatted examples. We use
the PRE element to format the examples. We also assign a background
color (green) to all instances of the PRE element belonging to the
class "example". "

What they really mean is that:

One given document might include more than one PRE section. Any of
these can present a green background, if we associate that section
with a certain CLASS; which we called, "example", in this example.

And I'm confused, as well, why W3C doesn't use lower case for XHMTL?
It's the particular version they can call their own.

Anyway.

Jul 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2279
by: listaction | last post by:
Hello All, I'm trying to avoid use of tables for layout purposes. So I have the layout positioned using css and <div>. When the browser window is resized by clicking & dragging the mouse, the text doesn't transform gracefully as it would if I were to use tables for layout. Any way to fix this, and continue to use DIV or is the only way to...
16
1701
by: brian.ackermann | last post by:
Hi all, I'm working on a quick-n-dirty forum to plug into a 'strategic task planning' module I am putting together. The basics are all in place. I've gotten to a point where I can now view the contents of a thread. The output is dynamically generated from the database, via asp. The problem is that the display of the first item in the set...
10
9184
by: Luke | last post by:
Hi. I am trying to make correct layout, here is an example of (dynamically generated content via jsp): http://localhost/www/layout.htm Most outer div is positioned absolute (if not then it will not grow when content inside div.body is greater than width of window of user agent), anyway anyone knowlegable can see it in sources...
6
9236
by: Gordowey | last post by:
Where can I find this DIV effect. go to: http://www.amazon.com Put mouse over the text "See All 32 Product Categories" (Top-Middle)..it will open a window with a cool effect... does anyone know where to find a script with this effect.... thanks
1
5189
by: MissMarie | last post by:
I've been playing around with DIV tables in myspace to better learn how to rewrite my own code for my business site without having to pay someone to design it. I've tried embedding a slideshow into a div table and after I save it I noticed that the slideshow does not show up and the embed code I added is altered. Can anyone help me figure this...
2
2223
by: tonsi | last post by:
I have a page but it wont center the div. Can anyone take a look at it and help. When I try to center in the body using text-align: center; it doesn't work with the main container (called Table_01). Please help! I would be ever so greatful. The page is located here: http://www.cpiequipment.com/test_site/index.html Here is the code: ...
14
2516
by: issentia | last post by:
I'm working on this site: http://www.essenceofsoy.com/redesign/index2.html and I'm having a few problems with getting the layout exactly right. 1) When the menu items are rolled over, they cannot be clicked as links unless the mouse pointer is below the word. This happens in both Firefox and IE6. 2) In Firefox, the pink quote banner and...
0
1810
by: labmonkey111 | last post by:
I'm trying to get a list of page links for a report, and I'm running into a problem with IE. I have a group of nested left-floating DIVs for the page menu, inside a table. Firefox expands the size of the table to see the entire menu, but IE does not, the last few are cut off. After a couple of hours of testing, I have determined that IE is not...
2
6131
by: samz | last post by:
Hello, 1. How to get my DIV (DIV.Box) fit its content (an image)? width:auto doesn't work? 2. How to get links (A) in this DIV click-able (on the IMG) in IE6 too? Thanks URL: http://www.airfirst.ch/b1/album3.html
9
2694
by: DevInCode | last post by:
Hi I'm trying to get a css layout working. One so I can use it, and two just to refine my css skills. The idea is that each part of the page (left pane, right pane, middle pane etc) have a border around them that is a series of background images. This is because I want to have rounded corners and my own border that I've designed. I...
0
7850
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
1
7874
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6524
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5664
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5343
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3786
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3801
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1391
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1114
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.