PythonFlask/templates/form.html

23 lines
873 B
HTML
Raw Normal View History

2024-02-27 23:44:54 -06:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simple Web Form</title>
</head>
<body>
<h2>Enter your information:</h2>
<form method="post">
<label for="name">Name:</label><br>
<input type="text" id="name" name="name" required><br>
<label for="phone">Phone Number:</label><br>
<input type="tel" id="phone" name="phone" pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}" placeholder="123-456-7890" required><br>
<label for="address">Address:</label><br>
<input type="text" id="address" name="address" required><br>
<label for="comments">Comments:</label><br>
<textarea id="comments" name="comments" rows="4" cols="50"></textarea><br><br>
<input type="submit" value="Submit">
</form>
</body>
</html>