2.7

<head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Basic CSS Styles</title> <style> body { font-family: Arial, sans-serif; background-color: #f4f4f4; color: #333; margin: 0; padding: 0; }
h1 {
  color: #007BFF;
  text-align: center;
  margin-top: 20px;
}

p {
  font-size: 16px;
  line-height: 1.6;
  margin: 20px;
}
</style> </head> <body> <h1>Welcome to My Web Page</h1> <p>This is a simple paragraph demonstrating basic CSS styles. CSS allows you to control the appearance of your web page, including fonts, colors, and layout.</p> </body>
posted @ 2025-02-07 17:57  霸王鸡  阅读(7)  评论(0)    收藏  举报