Class 4 Prep
Forms and Inputs
We have seen how to use HTML to display content to a user. But what if our site needs to receive information from the user? Using the <form>
element and its child <input>
elements, you can build user-interface components such as text fields, drop-downs, and check-boxes that allow the user to provide input to your web app. This next section of the course examines how to create these forms, and also how to handle the user's input on the back-end and respond to it.
Task | Resource Type | Link | Instructions |
---|---|---|---|
Do | Interactive Lesson | Working with HTML Forms | Watch and code along with this video lesson on using HTML forms |
Do | Interactive Lesson | Forms in Flask | Watch and code along with this video lesson that shows you how to display and process forms in Flask |
Read | Article | HTTP Methods: GET vs POST | Reread this article on the differences between GET and POST and the usages of each to reinforce your understanding of HTTP methods |
Read | Article | List of HTTP Status Codes | Read this article, focusing on:
|
Watch | Video Lesson | Form Inputs | Learn about different form input elements |
Watch | Video Lesson | Using str.format in Python | Learn about the str.format function, which we'll use to format HTML within Python code |
Do | Review | Class 4 Prep Review | Solidify your knowledge of the concepts covered in these lessons |