IDs is there for JS and classes for CSS mostly, of course there are exceptions. ID selectors are generally faster http://jsperf.com/id-vs-class-vs-tag-selectors/2