HTML & CSS for Beginners Part 11: Classes & IDs

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

BeginnerUI11 min

About this video

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