1.1 HTML Forms Flashcards
What is the HTML tag for the forms element?
How many form HTML tags can you use?
Only 1.
The proper HTML syntax is 1 form tag, per form.
You cannot nest form tags within a form.
What is the relationship between the form and the database?
Forms capture information from end users then send the information to a database.
In the database is where the information from the form is stored for use and retrieval later on.
What is the action attribute of a form do?
The action attribute is the web address where information is processed, submitted via form.
What are the two key attributes that forms need to process information?
- Action and
- Method
What does the method attribute of the form do?
Method is how it submits the form.
Methods can be either ___ or ___
Post or Get
What is the post method for forms?
Data from the form is posted to the server
What is the get method for forms?
Data is sent in the URL Parameters are separated using ? marks
Is there a backend component to forms?
Yes It is important to work with backend developer to make sure these pieces are “talking” and setup correctly.
What is the complete HTML syntax for form action with a post method? (ie. tags, signs, text, etc.)
The HTML is
When it comes to forms, how frequently used is the input element?
The input element is one of the most common elements used in forms.
What is a self closing HTML element?
It is an HTML element that doesn’t require a closing HTML tag.
Is the HTML input form element self-closing?
Yes, input is a self-closing HTML tag.
What is the text input field of a form?
It accepts text, numbers, even passwords.
What is the basic HTML syntax of a text field?
The text field HTML is Since it’s an input, it’s a self closing tag.
What types of inputs use numbers in a form?
Phone numbers, month, date
What 3 type of inputs would you collect from a form that relate to form organization to select choices?
Check boxes, radio buttons, drop down menus
What input types would control a form?
Reset, submit, button
What input types would you want from an end user?
Email, Password, Telephone number, URL
When would you want to use the input?
If you have a few sentences, then it’s best to use a form field.
What are the practical applications of the input area?
For writing a message in a form For asking users to write a bio For a quiz to allow several lines of text for writing