The "class" attribute

  • The class attribute marks elements as part of a special category
  • Even though there are a lot of HTML elements, you can't always find what you need
  • Classes let you organize your site using terms that you define
  • CSS can then target those classes and apply styles

12 / 22