A beginner lesson in HTML and CSS explaining what classes and IDs are, how each works, and how they differ. It is part of a series for people building their first website.
What you’ll learn
✓Explain the difference between an HTML class and an HTML id
✓Apply classes and ids to elements so CSS can target them
✓Choose between a class and an id when styling a page