Computer Science, asked by mohantyjoshna20, 5 months ago

write short note on FORMS IN HTML.​

Answers

Answered by mantuppr16
2

Answer:

A webform, web form or HTML form on a web page allows a user to enter data that is sent to a server for processing. Forms can resemble paper or database forms because web users fill out the forms using checkboxes, radio buttons, or text fields. For example, forms can be used to enter shipping or credit card data to order a product, or can be used to retrieve search results from a search engine.

Explanation:

Forms are enclosed in the HTML <form> element. This element specifies the communication endpoint the data entered into the form should be submitted to, and the method of submitting the data, GET or POST.

Elements Edit

Forms can be made up of standard graphical user interface elements:

<text> — a simple text box that allows input of a single line of text.

<email> - a type of <text> that requires a partially validated email address

<number> - a type of <text> that requires a number

<password> — similar to <text>, it is used for security purposes, in which the characters typed in are invisible or replaced by symbols such as *)

<radio> — a radio button

<file> — a file select control for uploading a file

<reset> — a reset button that, when activated, tells the browser to restore the values to their initial values.

<submit> — a button that tells the browser to take action on the form (typically to send it to a server)

<textarea> — much like the <text> input field except a <textarea> allows for multiple rows of data to be shown and entered

<select> — a drop-down list that displays a list of items a user can select from

The sample image on the right shows most of these elements:

a text box asking for your name

a pair of radio buttons asking you to pick your sex

a select box giving you a list of eye colors to choose from

a pair of check boxes to click on if they apply to you

a text area to describe your athletic ability

a submit button to send it to the server

These basic elements provide most common graphical user interface (GUI) elements, but not all. For example, there are no equivalents to a tree view or grid view.

A grid view, however, can be mimicked by using a standard HTML table with each cell containing a text input element. A tree view could also be mimicked through nested tables or, more semantically appropriately, nested lists. In both cases, a server-side process is responsible for processing the information, while JavaScript handles the user-interaction. Implementations of these interface elements are available through JavaScript libraries such as jQuery.

HTML 4 introduced the <label> tag, which is intended to represent a caption in a user interface, and can be associated with a specific form control by specifying the id attribute of the control in the label tag's for attribute.[1] This allows labels to stay with their elements when a window is resized and to allow more desktop-like functionality e.g. clicking a radio button or checkbox's label will activate the associated input element.

Answered by akshansh27
2

An HTML form is a section of a document which contains controls such as text fields, password fields, checkboxes, radio buttons, submit button, menus etc. An HTML form facilitates the user to enter data that is to be sent to the server for processing such as name, email address, password, phone number, etc. .

Similar questions