Skip to content

2/12/2025

Element Selector: Selects HTML elements based on the element name.

ID Selector: Uses the id attribute of an HTML element to select a specific element. (use a # symbol to select based on an ID)

Class Selector: Selects HTML elements with a specific class attribute. (use a . symbol to select based on a class)

Descendant Selector: Matches all elements that are descendants of a specified element.

We will understand what the webpage box model is. We will also understand how to interact with the webpage box model.

Code & Curiosities