Form tag
Capable of receiving user input (input select upload) and send it to the backend
action destination control data filed
under 1. Do not write the default submission to the path where the current page
2. Write the full path (https://www.baidu.com)
3. path suffix (/ index /)
input input tag is similar to the front-end Transformers
of the type
text : plain text
password : plaintext ciphertext does not display
DATE : Date
the Submit : submit action triggered
the Button : push button has no real meaning but can implement a custom action binding event by JS
the RESET : Heavy home form content
Radio : Radio through checked controlling default selection (when the same property values and attribute names may be abbreviated case checked) checked = "checked"
the CheckBox : multiple choice above can set the default value
File : get users to upload files
input needs and lable together with the input box only needed lable
Click the tab into the input box
select option label drop-down box
defaults to the radio through multiple becomes a multiple choice
if you want to use the default choice selected (selected = "selected")
textarea tag
to obtain a large section of text entered by the user
hidden hidden input box
disabled
The default form is the form you need to get a request submitted by the method parameter replaced POST
form submit the form in order to trigger the action
only two cases can
1.input label type specified as the Submit
2. Direct write button label
Get user input (input select to upload ...) the label must have a name attribute
the name attribute is similar to key dictionary, while the value of the label to obtain the user to write on the dictionary of similar value
<input type = "text" id = "d1" name = "username" value = " default values">
name is the equivalent of a dictionary Key
value is the value of the dictionary
to obtain all user input will be placed in the value attribute
form form when the file transfer need to specify the enctype parameter
emmet plug
foolproof measures