WebsiteLesson 305Free preview
Contact Section
This lesson is part of How To · All levels
Summary
The contact section on the website makes it easy for visitors to send messages or find other communication channels. A good form has a clear label, an appropriate input type, and a helpful validation message. Include email, phone, address, or social media links so that visitors have multiple options.
Key points
- Use labels that connect to the input via the for and id attributes
- Select the right input type such as email, tel, or textarea
- Attributes required help prevent the sending of blank data
- Arrange the forms and contact information in a two-column layout on the desktop
- Make sure the form is convenient to use with the keyboard and screen reader
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.