Tuesday, August 31, 2010

Basic HTML forms

Hypertext Markup Language (HTML) is the predominant markup language for the creation of web pages. It provides a means to describe the structure of text-based information in a document — by denoting certain text as headings, paragraphs, lists, and so on — and to supplement that text with interactive forms, embedded images, and other objects. HTML can also describe, to some degree, the appearance and semantics of a document, and can include embedded scripting language code which can affect the behavior of web browsers and other HTML processors.
An HTML form is a document that contains content that translates the human language to computer language and controls and dictates the interaction of various web pages with their users. HTML forms are also used to display queries and data in a schematic and organized manner. Forms are usually scripted in a language such as PHP, PERI, ASP, ASP.NET, etc
Some of the various controls involved in the functioning of a form are:
Buttons: There are usually three kinds of buttons - submit, reset and push. A submit button submits the form to the owner of the webpage. The reset button is used to reset the controls. And the push button which has no default behaviour on its own. Whenever the client presses the “push” button the client-side of the script is activated.
Checkboxes: Checkboxes are options that may be manipulated by the user. The switch is considered on, when a particular attribute of the checkbox is “checked”.
Radioboxes: Radioboxes and checkboxes are similar, except that radio buttons do not allow multiple selection/options.
Menu: Menus offer options to navigate the website and also provides a systematic path, so that a visitor does not lose his way inside the site.
File select: This control allows the user to select files, such that the contents of the file can be put on the form. For instance, a button saying “browse” falls under this category.

HTML is one of the most popular scripting languages in the world and can display a variety of colours, fonts, text, graphics, etc. Compared to other scripting languages HTML is fairly easy to use and is not case specific. It is also completely free and there is no need to buy any specific software to use it.

No comments:

Post a Comment