HTML form Components
Something inside the form tag
1 <!DOCTYPE HTML>2 <HTML>3 <Head>4 <title>Form.html</title>5 6 <Metaname= "keywords"content= "Keyword1,keyword2,keyword3">7 <Metaname= "description"content= "This is my page">8 <Metaname= "Content-type"content= "text/html; charset=utf-8">9 Ten <!--<link rel= "stylesheet" type= "Text/css" href= "./styles.css" > - One A </Head> - - <Body> the This is my HTML page. - <BR> - <formAction=""> - <!--You must have the name and Value property, or the server cannot get data, name is the name of the component, + The name is the value that the commit server is the key value of the service to this data. - - +Enter Name:<inputtype= "text"name= "User"value=""><BR/> AEnter Password:<inputtype= "Password"name= "pwd" /><BR/> at <!--checked is the default choice, the default choice of female, the user less one step, very convenient, and the back of the selected is also the default choice of meaning - -Select Gender:<inputtype= "Radio"name= "Sex"value= "Nan" />male - <inputtype= "Radio"name= "Sex"value= "NV"checked= "Checked" />Woman<BR/> -Select technology:<inputtype= "checkbox"name= "Tech"value= "Java" />JAVA - <inputtype= "checkbox"name= "Tech"value= "html" />HTML - <inputtype= "checkbox"name= "Tech"value= "CSS" />Css<BR/> in <!--Select File This feature is particularly convenient - -Select File:<inputtype= "File"name= "File" /><BR/> to <!--picture component, with submit function, when we need to use the self-made submit button, after all, the default is too ugly - +A pattern:<inputtype= "image"src= "11.jpg"/><BR/> - <!--Hide components, data users do not need to know, but can be submitted to the server, such as the data you calculated - theTo hide a component:<inputtype= "hidden"name= "Myke"value= "Nyvalue"/> <BR/> * <!--button components for custom functions, onclick= "alert (' has a button ')", single double quotes nested, alert popup dialog box - $a button:<inputtype= "button"value= "There is a button"onclick= "alert (' has a button ')" /><BR/>Panax Notoginseng - <!--above is the input component, which has 10 properties, see the Select property below - the <Selectname= "Country"> + <optionvalue= "None" >--Select country--</option> A <optionvalue= "USA" >United States</option> the <optionvalue= "en" >United Kingdom</option> + <optionvalue= "cn" >China</option> - $ </Select> $ <BR/> - <!--textarea attributes, such as writing a personal profile, thieves use - - <textarearows=""cols=""name= "text"></textarea> the - <BR/>Wuyi <inputtype= "Reset"value= "Clear Data" /><BR/> the <inputtype= "Submit"value= "Submit Data"/><BR/> - </form> Wu </Body> - </HTML>
HTML form Components