What is in HTML form brand?

In HTML, the form mark is used to indicate the area of ​​the website that the user can interact to send information. The form mark is defined by a specific format. Inside the form brand, you can use a number of different inputs, such as simple text boxes and check boxes. After sending the form, the information is transferred to the server that can immediately affect the information or save it in the database. There are two methods used to send the HTML form called "Get" and "Post" between two forms.

. The form mark is usually defined with the attributes of "action" and "method". The action is a script used to process information, and the method is the way the data is transferred to this script. In many cases, the script will be used to enter information from the form to the database for the next link.

Some common types of inputs that can be used inside the form, include field text, radio buttons and drop -out boxes. Can also be usedPassword field that hides the data entered by the user. All forms must complete with the Submit button used to send information to the server. Each form field must have a unique name so that the field of the same input type can be distinguished.

When users enter data into the form and click Submit Script Action decides what happens next. For a simple search field, the data can be used immediately without having to enter the database. The login form will use the action script to format data provided by the user and then records them.

Two methods are used to present the form information. "Get" is used to send data to the URL by connecting the question mark followed by information. The "post" data is sent to the processing script in the body.

There are many examples of Forms on the Internet. For example, any site that requires login usesA simple form to check the user's details against those in the database. In this case, a password for the user's private password will be used. Online orders also use forms and surveys of online orders. Although HTML marks are used for any website, layout or functionality can be improved by other languages, including JavaScript.

IN OTHER LANGUAGES

Was this article helpful? Thanks for the feedback Thanks for the feedback

How can we help? How can we help?