生日快乐html网页css
时间: 2024-04-30 22:16:51 浏览: 22
生日快乐html网页css是一种用于制作生日祝福页面的前端技术。在制作生日快乐html网页时,可以使用HTML标签来搭建页面结构,CSS样式来美化页面外观,还可以使用JavaScript来增加一些交互效果。
以下是一个简单的生日快乐html网页css代码示例:
```
<!DOCTYPE html>
<html>
<head>
<title>生日快乐</title>
<style>
body {
background-color: pink;
}
h1 {
color: white;
text-align: center;
margin-top: 50px;
font-size: 70px;
}
img {
display: block;
margin: auto;
margin-top: 50px;
width: 200px;
height: 200px;
border-radius: 50%;
border: 5px solid white;
}
p {
color: white;
text-align: center;
font-size: 30px;
margin-top: 50px;
}
</style>
</head>
<body>
<h1>生日快乐!</h1>
<img src="birthday.jpg" alt="生日快乐">
<p>祝你生日快乐,天天开心!</p>
</body>
</html>
```
相关问题:
1. 如何使用HTML标签搭建页面结构?
2. CSS样式怎么应用到HTML页面上?
3. JavaScript如何增加交互效果?