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’re generating or to let them submit data to the site. When browsing the web, you most definitely will have used forms. Whether you’re logged into your internet banking account, surfing the web with a browser, posting a message on social media, or writing an email to an online email client, in all these cases, you’re 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 values of your username and your password, respectively. We will go into the different types of inputs in more detail in an upcoming 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...