Does browser treat "id" and "class" as the same, even though they have different meaning?
mrnutty 761 Senior Poster
Recommended Answers
Jump to PostDepends what you're using them for. As a rule of thumb each 'id' can only be declared once, whereas you can have as many identical 'class' values as you want on a page. The id and class are used extensively as 'hooks' for css and javascript.
In CSS, 'ids' …
All 3 Replies

diafol
Lusiphur commented: beat me to it... again :P +1
Bandwidth Media commented: Very clear and straight to the point :) +0
ans025 1 Newbie Poster

rajarajan2017
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.