Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
Well done!
You have completed (UPI) Chapter 3: Web Design with Cascading Style Sheets (CSS)!
Instruction
How to Use Basic CSS Selectors to Apply Styles to HTML Elements
Selectors allow you to target specific HTML elements to apply CSS styling. Hereβs how to use the most common selectors:
3.1.6.1. Universal Selector
The universal selector (*) applies styles to every HTML element on the page:
css
* {
margin: 0;
padding: 0;
}
3.1.6.2. Type Selectors
Type selectors target all instances of a specific HTML element type. For example, p targets all <...