新婚祝福代码html
时间: 2023-11-29 22:45:16 浏览: 79
以下是一个简单的新婚祝福的HTML代码示例:
```html
<!DOCTYPE html>
<html>
<head>
<title>新婚祝福</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
background-color: #f2f2f2;
font-family: Arial, sans-serif;
font-size: 16px;
line-height: 1.5;
margin: 0;
padding: 0;
}
h1 {
color: #ff69b4;
font-size: 36px;
margin-top: 50px;
text-align: center;
}
p {
color: #333;
margin: 20px auto;
max-width: 600px;
text-align: center;
}
form {
margin: 20px auto;
max-width: 600px;
text-align: center;
}
input[type="text"], textarea {
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
display: block;
margin: 10px auto;
padding: 10px;
width: 100%;
}
input[type="submit"] {
background-color: #ff69b4;
border: none;
border-radius: 4px;
color: #fff;
cursor: pointer;
display: block;
font-size: 18px;
margin: 20px auto;
padding: 10px;
width: 200px;
}
</style>
</head>
<body>
<h1>新婚祝福</h1>
<p>感谢您来到我们的婚礼现场,留下您的祝福吧!</p>
<form action="#" method="post">
<label for="name">姓名:</label>
<input type="text" id="name" name="name" required>
<label for="message">祝福语:</label>
<textarea id="message" name="message" rows="5" required></textarea>
<input type="submit" value="提交祝福">
</form>
</body>
</html>
```
相关推荐
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)