FormsLesson 120Free preview
Contact Form
This lesson is part of How To · All levels
Summary
Contact forms are forms to send a message to the owner of the site. Forms usually contain names, email addresses, subjects, and larger message areas. In order for the message to be truly received, the form requires the name attribute on each field and processing on the server.
Key points
- Use the textarea for long messages.
- Each input needs a name to be sent.
- Labels connected to inputs increase accessibility.
- Validation of the client helps, but the server still has to check and filter the message.
- Include an anti-spam mechanism and set a privacy policy.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.