My HTML summary form and HTML Summary Form
Form is an important method for Web interaction.Collect User information and submit it to the server.
9 widgets in the form
<Input type = "text" name = "key" value = "123" readonly = "readonly" disabled = "disabled"/>
Shorthand form attributes:
1. the name attribute of the form is used to identify the form data submitted to the server. It is a key-value format. Let's take a look at backend processing: string name = context. request. form ["key"];
But now, you generally do not need to write the name any more. You can change the value to another method.
2. value is the value written in the input box.
3. readonly read-only attribute.
4. disabled makes the button gray and unavailable.
<Input type = "password"/> <selected> <option value = "1" selected> 1 </option> <option value = "2"> 2 </option> <option value = "3"> 3 </option> </selected> <input type = "radio" name = "like" value = "like" checked = "checked"/> <input type = "radio" name = "like" value = "dislike"/> <input type = "checkbox" name = "run" value = "running" checked =" checked "/> <input type =" checkbox "name =" pa "value =" hiking "/>
<Input type = "file">
<Textarea rows = "5" cols = "10"> </textarea> <input type = "submit" value = "register"/> <input type = "reset" value = "cancel"/>
<Input type = "button" value = "submit button"/> <input type = "image" src = "aaa.jpg">