# The CSS You Need for JavaScript

Read a CSS rule's selector, properties and values, pick elements by tag name, class, id or what they're inside, and see how a class added or removed by JavaScript changes the way an element looks.

![Cheat sheet: The CSS You Need for JavaScript](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/10/9a33ab79c7f743d2b8a1acc4d4d94bcd.webp)

- Category: JavaScript
- Level: Novice
- Tags: Class selector, CSS, CSS rule, Descendant combinator, ID selector, JavaScript, Property (css), Selector (css)
- Updated: November 1, 2026

Source: https://www.ask-codey.com/cheat-sheets/javascript-page-basics-the-css-you-need-cheat-sheet
