HTML tags, defining HTML forms on the site
We create websites and individual pages on the Internet to communicate with visitors.
HTML forms are used to register visitors on the site, for interactive polls and voting, allow you to send messages, make purchases, and so on. HTML The form is created for one purpose: to collect and then transfer information for processing to a program script or by e-mail.
Sample HTML form | Enter the site
Tags, attributes and values
- - determine the form.
- name="" - defines the name of the form.
- method="" - determines how the data is sent from the form. Values: "get" (default) and "post" . The "post" method is more commonly used, as it allows you to transfer large amounts of data.
- action="" - determines the url by which the data is sent for processing. In our case - enter_data.php ..
- - define such form elements as buttons, switches, 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 radio button.
- type="hidden" - defines hidden element forms - used to convey additional information to the server.
- size="25" - length text field in characters.
- maxlength="30" - the maximum allowed number of input characters.
- value="" - defines the value that will be sent for processing if it refers to radio buttons or radio buttons. The value of this attribute as part of a text field or button will be shown as, for example, John or Login in the example above.
Sample HTML form | Comments on the site
|