Описание тега forms
A form contains elements which are inputs and outputs.
These inputs may include text fields, checkboxes, radio-buttons, submit buttons, hidden inputs (hidden from the agent filling the form) and more.
A web form element also is characterized by the action that will be undertaken on submit and the method used to make the request (HTTP GET or POST).
VB and C# forms are the windows used to interact with the user.
Standard html form declaration is,
<form action="form_action" method="submit_method">
.
{input elements, here you can declare any html
tag and all you input fields that can be text fields,
checkboxes, radio-buttons, submit buttons and more }
.
</form>
Reference
- Forms Wikipedia Article
- W3C Specification
What is an HTML Form
HTML Forms
are required to collect different kinds of user inputs, such as contact details like name, email address, phone numbers, or details like credit card information
, etc.
Forms contain special elements called controls like inputbox, checkboxes, radio-buttons, submit buttons
, etc. Users generally complete a form by modifying its controls e.g. entering text, selecting items, etc. and submitting this form to a web server for processing.
The <form>
tag is used to create an HTML form. Here's a simple example of a login form:
<form method="POST" action="some_action>
<fieldset>
<legend>Log In</legend>
<label>Username: <input type="text"></label>
<label>Password: <input type="password"></label>
<input type="submit" value="Submit">
</fieldset>
</form>