Hello World in CSS
Lesson: Your First CSS Styling
CSS is used to change how things look on a webpage.
Basic idea:
selector {
property: value;
}
👉 Selector = what you want to style (like h1)
👉 Property = what you want to change (like color)
👉 Value = how you want to change it (like green)
Your task:
Make the text:
Exercise: Style the Text
You already have a heading on the page:
👉 <h1>Hello, World!</h1>
Your task:
- Change the text color to
#00ff9d - Center the text
- Make it larger (32px)
- Change the text color to
