帮我用HTML写一个宠物喂养页面
时间: 2023-12-17 12:03:24 浏览: 30
好的,以下是一个简单的宠物喂养页面示例,您可以根据您的需要进行修改和调整:
```html
<!DOCTYPE html>
<html>
<head>
<title>宠物喂养页面</title>
</head>
<body>
<h1>宠物喂养页面</h1>
<form action="submit.php" method="post">
<label for="pet-name">宠物名字:</label><br>
<input type="text" id="pet-name" name="pet-name"><br><br>
<label for="food-type">食物类型:</label><br>
<select id="food-type" name="food-type">
<option value="dry-food">干粮</option>
<option value="wet-food">湿粮</option>
<option value="raw-food">生食</option>
</select><br><br>
<label for="feeding-time">喂养时间:</label><br>
<input type="time" id="feeding-time" name="feeding-time"><br><br>
<label for="feeding-amount">喂养数量:</label><br>
<input type="number" id="feeding-amount" name="feeding-amount"><br><br>
<input type="submit" value="提交">
</form>
</body>
</html>
```
该页面包括一个表单,用户可以输入宠物的名字、食物类型、喂养时间和喂养数量,并点击提交按钮提交表单。您可以将表单的`action`属性设置为您的服务器端脚本的URL,以便在用户提交表单时处理数据。