html (four)

Form elements

The Form element lies in two aspects, one is interacting with js, and second, to submit data to the server.

form Form definition for user input
input Define the input field
textarea Defined text fields
label Custom Label
fieldset It defines a set of related form elements, comprising a frame and use them
legend It defines the title of the fieldset element
select Defines the drop-down list
OPTGROUP Defined set of options
option Defined drop-down list of options
button Define a click of a button
datalist Enter a specified list of predefined control options
keygen Defined form key pair generator field
output Define a calculation

Front-end to back-end data submission

1, submit the URL directly through the navigation frame, this way is a way to get submitted

2, form by form submission, you can specify submission

3, submitted by js script that ajax, you can define true / false decide whether to turn ajax. You can also specify submission

Way to the front of the back-end data submission

1, the steering

2. Redirect

3、ajax

Guess you like

Origin www.cnblogs.com/blunFan/p/11506125.html