"Web Front End" HTML entry (16) - HTML input type

HTML input type

This chapter describes the type of input element.

Input Type: text

Single line input field <input type = "text"> is defined for the input text

Input Type: password

<Input type = "password"> defined password field

Input Type: submit

<Input type = "submit"> submitting the form data to define button form handler.

Form handler (form-handler) usually includes processing the input data server page script.

Predetermined form handler in the action attribute in the form (form-handler)

Input Type: radio

<Input type = "radio"> defined radio button.

Radio buttons let a user select ONLY ONE of a limited number of choices

Input Type: checkbox

<Input type = "checkbox"> Definition check box.

Box allows the user to select zero or more options in a limited number of options.

Input Type: button

<Input type = "button> Define button.

Input Type: number

<Input type = "number"> should contain a numeric value input field.

You can make restrictions on the numbers.

According browser support, restrictions can be applied to the input field.

Reference Source: https://www.w3school.com.cn/index.html

Published 37 original articles · won praise 26 · views 1887

Guess you like

Origin blog.csdn.net/LanXiu_/article/details/104562594