Exciting CSS Learning Exercises
Exciting CSS Learning Exercises Exercise 1: Basic Styling Objective: Apply basic styling to an HTML document. Steps: HTML: <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”UTF-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <link rel=”stylesheet” href=”styles.css”> <title>Exercise 1</title> </head> <body> <h1>Hello, CSS!</h1> <p>This is a sample paragraph.</p> </body> </html> CSS (styles.css): body { background-color: #f0f0f0; font-size: 16px; color: #333; … Read more