用html帮我写一个联系网页
时间: 2023-09-04 22:09:58 浏览: 37
好的,以下是一个简单的联系页面的HTML代码:
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Contact Us</title>
</head>
<body>
<h1>Contact Us</h1>
<form action="submit-form.php" method="POST">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required><br>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required><br>
<label for="phone">Phone:</label>
<input type="tel" id="phone" name="phone"><br>
<label for="message">Message:</label><br>
<textarea id="message" name="message" rows="5" cols="30" required></textarea><br>
<input type="submit" value="Submit">
</form>
</body>
</html>
```
这个页面有一个表单,用户可以填写姓名、电子邮件、电话和消息。表单的提交按钮会将表单数据发送到 `submit-form.php`,您需要在此处编写 PHP 脚本来处理表单数据并将其发送到您的邮箱或其他数据库中。
请注意,这是一个基本的联系页面,您可以根据自己的需要进行修改和添加。