.classList

Term side of the Card
Topic: Object on Page
Unit title: .classList
Categories: Property, Object
Explanation side of the Card

Explanation: The browser API property of an HTML element that returns a live `DOMTokenList` collection of the element's CSS classes. It provides methods to add, remove or toggle classes on the element.

Browser compatibility:
  • The chrome browser supports this feature starting from version 22
  • The edge browser supports this feature starting from version 16
  • The firefox browser supports this feature starting from version 3.6
  • The safari browser supports this feature starting from version 7
Availability: