HTML form Components

Source: Internet
Author: User
Tags html form

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.