Html--form

Source: Internet
Author: User

<form> tags are used to create HTML forms for user input.

A form can contain input elements such as text fields, checkboxes, radio boxes, submit buttons, and so on.

Forms can also contain menus, textarea, fieldset, legend, and label elements.

Forms are used to transfer data to the server.

Use of radio buttons:

<HTML><Body><form>Male:<inputtype= "Radio"checked= "Checked"name= "Sex"value= "Male" /><BR/>female:<inputtype= "Radio"name= "Sex"value= "female" /></form><P>When a user taps a radio button, the button becomes selected and all other buttons become unchecked.</P></Body></HTML>
View Code

When a user taps a radio button, the button becomes selected and all other buttons become unchecked.

About the use of label for:

<HTML><Body><P>Click on one of the text markers to trigger the associated control:</P><form><label for= "Male">Male</label><inputtype= "Radio"name= "Sex"ID= "Male" /><BR/><label for= "female">Female</label><inputtype= "Radio"name= "Sex"ID= "female" /></form></Body></HTML>
View Code

Click on one of the text markers to trigger the associated control:

Html--form

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.