Selectors
Last updated
Last updated
Every HTML element supports a variety of attributes. Some of the common attributes we can use to style our elements are:
Element Selector - Style any HTML Element p{}
id Selector - A unique id that should only be used once.
Class Selector - A style we can use on more than one element.
Attribute Selector - More unique attribute contions.
nth-child Selector - Odd or even, every first, second, third...
And we can apply multiple classes to a single element for additional styles.