A form needs two parts: the page people see and something that receives the data.
Direct answer
An HTML form collects the information, but you need a backend or a form service to receive it. Static sites can use a form service or the hosting platform's form handling. Add labels, validation and spam protection.
Basic HTML
<form action="https://your-form-service.example/submit" method="POST">
<label for="name">Name</label>
<input id="name" name="name" required>
<label for="email">Email</label>
<input id="email" name="email" type="email" required>
<label for="message">Message</label>
<textarea id="message" name="message" required></textarea>
<button type="submit">Send</button>
</form>
Options for receiving it
- A form service that emails you submissions.
- Your host's built-in forms.
- Your own server endpoint.
Good practice
- Label every field.
- Explain what you do with the data.
- Add spam protection.
- Show a clear success message.
- Do not log sensitive data.
Where Teyro fits
Teyro's Build and Launch a Website course turns this into short lessons you can play in a few minutes a day. It has 100 lessons, and you can start free.
The bottom line
Keep it short, label it well and protect it from spam.



