8.3 Homework/Practice
Create a Landing Page with Styled Headers and Body Text
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Landing Page</title> <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Open+Sans:wght@400;600&display=swap" rel="stylesheet"> <style> body { font-family: 'Open Sans', sans-serif; padding: 20px; background-color: #f4f4f4; } h1 { font-family: 'Poppins', sans-serif; text-transform: uppercase; letter-spacing: 3px; color: #2c3e50; text-align: center; } h2 { font-family: 'Poppins', sans-serif; text-transform: capitalize; color: #34495e; margin-bottom: 20px; } p { font-size: 16px; line-height: 1.8; color: #555; } </style> </head> <body> <h1>Welcome to My Landing Page</h1> <h2>Subheading Goes Here</h2> <p>This landing page is an example of how you can style text using CSS typography techniques. We use various Google Fonts and different text properties such as text transformation, spacing, and alignment to enhance the page design.</p> </body> </html>
Last updated