. NET regression HTML----form elements (1) and some common tags

Source: Internet
Author: User

Forms are-----used to collect different types of user input .

Form elements refer to different types of input elements, check boxes, radio buttons, submit buttons, and so on.

The form element is first divided into three types. Text class, Button class, select Class.

Forms can be nested within a table, or they can be nested within a table, with different scopes. (range of the self-brain complement)

The form is also created in <body></body>

Form Creation---<form action= "" method= "" ></form> note this is not from

The first is the text class

    • <input type= "text" value= "default display"/>-text box placeholder= "can be added to the mouse point will disappear gray hint" if you use this, value cannot have a word

    • <input type= "Password"/>--The Password box can also add default content with value, and the box shows hidden content that is small dot

    • <input type= "textarea"/>--text field, like a comment under the box, you can change the line
    • <input type= "hidden"/>--hidden domain, no user can not see

Button class

    • <input type= "button" value= "the word"/>-the normal button is the above forgotten password

    • <input type= "Submit"/>--default called Commit, Commit and refresh, will send all data to the server

    • <input type= "Reset"/>--default is reset, emptying content within the same form (excluding default content)
    • <inout type= "image" src= ""/>-the picture button, but also the submit button can be added to src inside the relative path, add the image after the button becomes the shape of the picture, function unchanged.

Select Class

    • <input sype= "Radio" name= "Sex" id= "Nan"/>--Radio (select one directly in the same group.) checked= "Checked"(becomes the default option), directly after the <> Word can be displayed

Group ↑ ↑ The number of this element (recognition function), cannot be repeated.

    • <lable for= "Nan" > Male </label>-related, let the user point male this word can also be selected, you can also change the male picture

↑ ID of the element

    • <input type= "checkbox"/>--multi-selection also needs to be grouped

    • <select>--drop-down menu

<option>aaa</option>-Dishes in the menu


    • <input type= "File"/>--Upload file

In addition to the text field, all other useful uses value

. NET regression HTML----form elements (1) and some common tags

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.