What Is a Form?
When working with an interactive web app, we not only want to provide data to users but also accept data from them to either customize the responses we are generating or let them submit data to the site. When browsing the web, you will most definitely have used forms. Whether you're logging in to your internet banking account, surfing the web with a browser, posting a message on social media, or writing an email in an online email client, in all these cases, you are entering data in a form. A form is made up of inputs that define key-value pairs of data to submit to the server. For example, when logging in to a website, the data being sent would have the keys username and password, with the values of your username and your password, respectively. We will go into the different types of inputs in more detail in the Types of Inputs section. Each input in the form has a name, and this is how its data is identified on the server-side (in a Django view). There can be...