Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
- What is CSS?
- What is CSS for?
- CSS syntax
- CSS Modules
- CSS Specifications
- Browser support information
- Getting started with CSS rules
- Adding CSS to our document
- Styling HTML Elements
- Adding a Class
- Styling things based on their location in a document
- Styling things based on state
- Combining selectors and combinators
- Essentials of CSS Quiz 5 questions
Well done!
You have completed (UPI) Chapter 1: HTML, CSS, and JavaScript Basics!
Instruction
Adding a Class
Targeting Specific HTML Elements with CSS Classes
So far, you've learned how to style HTML elements by targeting their tag names, like <h1>, <p>, and <li>. While this method is useful, it applies the same styles to all elements of that type across the entire document. Often, you'll want to style only specific elements differently, even if they share the same tag. This is where CSS ...