I\'ve been applying an ID to the body tag of my HTML documents lately to allow greater CSS control (#9). Recently the though occurred to me that I could do exactly the same
ID needs to be unique per page (if you want valid markup), meaning only one instance of a particular ID should exist on a page.
Classes, on the other hand, can be applied to numerous elements per page. Use classes for things that reuse the same styles and use IDs for more unique elements that require their own styling.
Ideally, use classes whenever possible and limit the use of IDs.
For more information on ID, see here, and more on classes, see here.