Practice connecting selector types to visible targets, then inspect the box model layers in DevTools.

What this covers

  • Element selectors target all elements of a given type
  • Class selectors target reusable groups
  • ID selectors target one unique element and carry higher specificity
  • The box model: content, padding, border, and margin as distinct layers

Open the browser DevTools, hover the .box element in the preview, and look at the Box Model panel to see each layer.

Selectors and box model specimen

Preview