5.3 Homework/Practice
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>CSS Homework</title> <style> /* Add your internal CSS here */ </style> </head> <body> <h1>My Styled Page</h1> <h2>This is a subheading</h2> <p>This is a paragraph with some text.</p> <ul> <li>First item</li> <li>Second item</li> <li>Third item</li> </ul> </body> </html>h1 { color: rgb(34, 139, 34); /* RGB */ font-size: 28px; } .paragraph { color: #333; /* HEX */ line-height: 1.5; } #list-item { color: hsl(240, 100%, 50%); /* HSL */ }
Last updated