HTML Input Series tags

Source: Internet
Author: User

There are too many input properties, I'll just list a few that I like.

Disabled: Disable this element on first load

Checked: This element is selected on first load

Form: One or more forms that the input field belongs to

Hieght: Defines the height of the input field for Type=image

Max_length: Maximum length of characters in the input field

Min: On the contrary

Name: Define the names of the input elements

Pattern: The mode or format of the input field value

Multiple: Allow more than one value

Required: The value of the input field is required

Size: Enter the width of the field

Width: input field widths, for type=image

Type

Button Press Twist

CheckBox check box

File files

Hidden hidden

Imag pictures

Password Password

Radio Radio Box

Submit Press Twist

Text literal

The value of the Value:input element, the identity that submits the background

Example workspace:

Text fields: Form forms: block-level labels

<form>#文本域 Surname:<input type="text"Name="FirstName">Name:<input type="text"Name="LastName"> <input type="Submit"Value="Submit"> </form> <form>#密码 user name:<input type="text"Name="User">Password:<input type="Password"Name="Password"> <input type="Submit"Value="Submit"> </form> <form>#复选框 I like: One Piece car:<input type="checkbox">Beauty:<input type="checkbox">Movie:<input type="checkbox"> <input type="Submit"Value="Submit"> </form> <form>#单选框, name must be consistent in order to mutually exclusive your surname male:<input type="Radio"Name="R">female:<input type="Radio"Name="R"> <input type="Submit"Value="Submit"> </form> <form>#围绕数据的fileset<fieldset> <legend> Health Information </legend>Height:<input type="text">Weight:<input type="text"> </fieldset> </form>
View Code

HTML Input Series 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.