Understanding forms
Whether you are new to development or you already have some experience, it is important to spend a bit of time looking at what makes a good form and how to best define forms.
I started to learn forms over 10 years ago but still, for me, there was something new to learn while I completed my research for this chapter. HTML5 enhancement and accessibility requirements have modified the way we define forms. In this section, we are going to understand what makes a good form, and then, in later sections, we will use this knowledge to define some forms in our Companion App.
In most static sites, such as brochure sites or blogs, forms are the only time in which a user interacts with your site, and as such, they need to offer a great user experience (UX) and be as accessible as possible.
A good form includes three different aspects:
- It is semantically correct
- It is accessible
- It is validated
By the end of this chapter, we will have covered...