Color Names in CSS
📖 Scenario: You are creating a simple webpage to show how different color names in CSS change the background color of boxes. This helps you learn how to use color names directly in CSS styles.
🎯 Goal: Build a webpage with three colored boxes using CSS color names: red, green, and blue. Each box should have a label showing its color name.
📋 What You'll Learn
Use CSS color names to set background colors
Create three boxes with distinct colors: red, green, and blue
Label each box with its color name inside
Use semantic HTML elements
Make sure the boxes are visible and spaced apart
💡 Why This Matters
🌍 Real World
Using color names in CSS is a quick way to add colors to web pages without remembering hex codes. It helps beginners understand colors and styling.
💼 Career
Web developers often use CSS color names for simple styling and prototyping. Knowing how to apply colors and center content is essential for building user-friendly interfaces.
Progress0 / 4 steps