Form Labels <form></form>
Input Series label
Text input Box
Placeholder default properties, disappears when entered
Password Password entry box
Radio Radio Box
CheckBox multiple Marquee
Submit button
button (need to use with JS.) What is the difference between button and submit?
File submission: Form form needs to add attribute enctype= "Multipart/form-data"
Select Label
TextArea Multi-line text box
Label label
FieldSet label
<!DOCTYPE HTML><HTMLLang= "en"><Head> <MetaCharSet= "UTF-8"> <title>Register</title></Head><Body><H2>Registration page</H2><formAction= "/index/"Method= "POST"> <P> <label for= "User" > Users:</label> <!--label tag, as in the following "Password:" --<inputtype= "text"name= "User"value= "Egon"> </P> <P>Password:<inputtype= "Password"name= "pwd"value= "123"></P> <P>Hobby:<inputtype= "checkbox"name= "Hobby"value= "Bastball">Basketball<inputtype= "checkbox"name= "Hobby"value= "Football"checked= "Checked">Football <!--checked= "checked" by default --<inputtype= "checkbox"name= "Hobby"value= "Pingpang">Table Tennis</P> <P>Gender:<inputtype= "Radio"name= "Sex"value= "1"checked= "Checked">male<inputtype= "Radio"name= "Sex"value= "0">female</P> <P> <Selectname= "Hometown"> <optionvalue= "Hebei"selected= "Selected">Hebei Province</option> <!--selected= "selected" By default -- <optionvalue= "Hebei" >Henan Province</option> <optionvalue= "Hebei">Hunan Province</option> <optionvalue= "Hebei">Hubei Province</option> </Select> </P> <P> <inputtype= "Reset"> </P> <P> <inputtype= "button"value= "button"> </P> <P> <inputtype= "File"> </P> <fieldset> <legend>Sign in.</legend> <inputtype= "text"> </fieldset> <inputtype= "Submit"value= "Submit"></form></Body></HTML>
Web front-End HTML Basics 2