What's the best selector for applying a style to just a single element of a webpage?

The ID selector The class selector

The ID selector is best for applying a style to just a single part of a page.