Day 12: IDs and Classes (30 Days to Learn HTML & CSS)

Envato on YouTubeWatch on YouTube

SaveMark complete

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

BeginnerUI9 min

About this video

This lesson explains how HTML IDs and classes assign labels to specific elements so they can be targeted in a stylesheet. It is day 12 of a free beginner course on learning HTML and CSS.

What you’ll learn

  • Assign IDs and classes to HTML elements
  • Target labelled elements from a CSS stylesheet
  • Choose between an ID and a class for a given element