<!
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Contact Us</title>
</head>
<body>
<h2>Contact Us</h2>
<form action="[Link] method="post">
<label for="name">Name:</label><br>
<input type="text" id="name" name="name" required><br><br>
<label for="email">Email:</label><br>
<input type="email" id="email" name="email" required><br><br>
<label for="message">Message:</label><br>
<textarea id="message" name="message" rows="5" cols="30"
required></textarea><br><br>
<input type="submit" value="Send Message">
</form>
</body>
</html>
What this does:
Displays a basic contact form with:
Text input for name
Email input
Text area for the message
Submit button
When submitted, it sends the data to a (placeholder) URL.
You can copy and paste this into a .html file and open it in your browser to see it
in action. Want a version that actually stores or sends data somewhere (like with
JavaScript or a backend)?
Ask ChatGPT