Keywords / Programming languages, id

Tags: Programming languages, id

When to use CSS ids and when CSS classes instead?

When to use CSS ids and when CSS classes instead?
At first glance, the use of classes and ids is almost identical: both can assign CSS properties with needed values to change the appearance of HTML document. But, under what circumstances can we make better use of classes, and under what ids?