Introduction
In the previous chapters, we studied how to build web pages that contain static text-based content. From this chapter onward, we will learn how to make web pages much more interesting, starting with forms.
Forms allow users to actually interact with a website. They enable users to sign up for services, order products online, and so on. Forms are arguably one of the most crucial aspects of business websites, as without forms no transactions can take place online. Businesses require online forms to capture user details when creating new user accounts, for instance, to allow users to select flight details when booking a holiday online. Without forms, many online businesses would not be able to function. With this in mind, developing complex forms is an essential skill to add to your toolbelt as a web developer.
In this chapter, we will take a look at the most common elements that are used to build forms with HTML. These HTML elements include text inputs, radio...