javascript.info The Modern JavaScript Tutorial Part 2: 1.8 Styles and Classes

Опубликовано: 07 Декабрь 2024
на канале: Lisa Friedrichsen
564
3

javascript.info The Modern JavaScript Tutorial Part 2: 1.8 Styles and Classes by Ilya Kantor
YouTube by Lisa Friedrichsen
This short YouTube discusses how to use the JavaScript properties of className and classList to modify the styles on HTML elements by modifying HTML class attribute values. It also demonstrates how to use the getComputedStyles() method to read the styles of an existing element and how to use the add(), remove(), and toggle() methods of the classList property to modify existing class attribute values.
Thanks for watching and happy coding!
All of my YouTubes can be found at:
https://learncs.w3spaces.com/