CSS Selectors: Classes and IDs

Now that we have the basics, let’s talk more about selectors. Here is the syntax we showed you earlier. CSS is made up of a selector and property-value pairs. CSS has different types of selectors. Let’s open our text editor, and browser, and look at type selectors first. Type selectors refer to HTML elements within the page. Here is the HTML generating the page, you can see the H1 and H2 headers, paragraphs, and a list. Now let’s look at the CSS. If w
Back to Top