HTML tags that define HTML forms on the site
We create sites and individual pages on the Internet to communicate with visitors.
HTML forms are used to register visitors on the site, for interactive polls and polls, allow you to send messages, make purchases, and so on. Html The form is created with one purpose: collection and subsequent transfer of information for processing to a program script or by e-mail.
Sample HTML Form | Sign in
Tags, attributes and values
- - determine the shape.
- name = "" - defines the name of the form.
- method = "" - defines the method of sending data from the form. Values: "get" (default) and "post". The "post" method is often used, since it allows transferring large amounts of data.
- action = "" - defines the url at which the data is sent for processing. In our case, enter_data.php ..
- - define such form elements as buttons, radio buttons, text fields for data entry.
- type = "text" - defines a text field for data entry.
- type = "password" - defines a field for entering a password, while the text is displayed as asterisks or circles.
- type = "checkbox" - defines a checkbox.
- type = "hidden" - defines a hidden form element - used to send additional information to the server.
- size = "25" - the length of the text field in characters.
- maxlength = "30" - the maximum number of characters to be entered.
- value = "" - defines the value that will be sent for processing if it refers to radiobutons or switches. The value of this attribute as part of a text field or button will be shown as, for example, Vasya or Login in the example above.
Sample HTML Form | Comments on the site
|