Form Handling in HTML
- What is an HTML Form ?
-
-
An HTML form is a section of a document containing normal content, markup and special elements called controls.
-
HTML forms are used to pass data to a server.
-
Users generally "complete" a form by modifying its controls (entering text, selecting menu items, etc.), before submitting the form to a server for processing
-
Creating an HTML Form
To create an HTML form we use the <form> tag.
General Syntax
<html>
<head>
<title> Form Demo! </title>
</head>
<body>
<form>
.
input controls
.
</form>
</body>
</html>
What are “input controls” ?
An HTML form can contain GUI elements like
"Text fields"
"Checkboxes"
"Radio-buttons"
"Lists"
and many more. These all are called “input controls” because users use them for inputting data.
Various Attribute Of <table> Tag
- Table tag has following important attributes:
-
<border> Sets the border width in numerical values from 0 and up.
-
<cellspacing> Empty space between table data cells.
-
<cellpadding> Empty space between the edge of a cell and cell content.
-
<align>Aligns the table to the left, right or center.
-
<width> and <height> The width/height of the table; measured in pixels or percentage.
-
<bgcolor> Background color for all cells that do not have a background color or image specified.
-
<background> Background image for all cells that do not have a background color or image specified.
-
<bordercolor> Border color for the table.