IDs — Meant to be unique within the document. Can be used to identify an element when linking using a fragment identifier. Elements can only have one id attribute.
Classes — Can be reused on multiple elements within the document. Mainly for styling and targeting elements.