Class 4 Prep Review
Here are some review questions for you to solidify your knowledge of the concepts covered in this class:
-
When do you want to use the
nameandidattributes for an HTML element? What are the uses of each? Which one will alabelelement'sforattribute reference? Which one will you use to access an element in your Flask app? -
What is the difference between a
radioinput type and acheckboxinput type? Which would you use when you want a user to be able to select multiple options? -
Which attribute can you use to specify a default value to be sent to the server when a form is submitted?
-
What are the differences between GET and POST requests? When do you want to use each? What attribute of the
formelement is used to specify the type of request you'll be making? - Describe a situation in which each of the following HTTP status codes might be received by a browser: 200, 404, 405, 500