Week4day4 Dom Practice
Definitions 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. (to select based on an ID use a # symbol) Class Selector: selects HTML elements with a specific class attribute.(to select based on an class us a . symbol) Descendant Selector: matches all elements that are descendants of a specified element.