(calming music)…- [Instructor] Once we have our style sheets…imported into our application,…we need to be able to connect the styles…to the actual elements that need the styling.…We're going to do this by using…something called a selector.…The selector does exactly what it says.…It selects the elements, that need to be styled.…And then has associated with it a number…of different style declarations with the actual styles…that are being applied.…
Using selectors is better than the style attribute…because you can actually override styles,…as well as move your style declarations…to an external file.…Now, there are many kinds of selectors,…roughly organized into three categories,…simple, compound and complex.…Compound selectors are nothing more than…a combination of simple selectors.…And complex selectors are nothing more…than a combination of compound selectors,…that are set up with special rules called combinators.…
Now, in this particular course,…we're going to take a look at a subset…of the most important simple and compound selectors.…
Share this video
Embed this video
Video: Basic selectors and styles