Is there a functional difference between IDs and Classes?


#1

Currently in section 9 of the HTML/CSS lessons (CSS Selectors) and so far I have not noticed a difference between Classes and IDs. The lesson plan implies that IDs are good for effecting one kind of element, however while playing around I quickly noticed that a single ID could be attached to multiple differing elements in the HTML code.

My question is thus: At this level of coding is there a functional difference between the way Classes and IDs work? And if not is there a functional difference in more advanced uses of the selectors that I will soon learn about?

Thanks for your time.

-Tech


#2

@techpriestoni,
Have read
http://stackoverflow.com/questions/12889362/difference-between-id-and-class-in-css-and-when-to-use-it

References

google search
== the Book ==
jquery [your question] site:developer.mozilla.org
CSS [your question] site:developer.mozilla.org
javascript [your question] site:developer.mozilla.org
[your question] site:jquery.com
[your question] site:getbootstrap.com

== discussions / opinions ==
jquery [your question] site:stackoverflow.com
CSS [your question] site:stackoverflow.com
javascript [your question] site:stackoverflow.com

== guidance ==
www.crockford.com
[your question] site:crockford.com
- - http://javascript.crockford.com/code.html
- - http://javascript.crockford.com/survey.html


#3

Thank you, that was very informative!