Difference between a CLASS and ID

What is the difference between a CLASS and ID?
LVL 3
Computer GuyAsked:
Who is Participating?
 
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
A 'class' is intended to be used wherever necessary while an 'id' is supposed to be unique.  'id' is also used by javascript to identify/find elements and get and set the values of them.
0
 
David KrollCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.