php-mysql tutorial

Designed By NISHANT GUPTA

  • Home
  • PHP
  • HTML
  • CSS
  • JavaScript
  • JQuery
  • Contact-us
  • Learn HTML

    • Introduction of HTML
    • Image Handling in HTML
    • List Handling in HTML
    • Font Handling in HTML
    • Table Handling in HTML
    • Form Handling in HTML
  • Learn CSS

    • Introduction of CSS
    • Styling Background in CSS
    • Styling Text in CSS
    • Styling Font in CSS
    • Styling Link in CSS
    • Styling List in CSS
    • Styling Table in CSS
    • Styling Div in CSS
    • Styling Span in CSS
    • Positioning in CSS
    • Display in CSS
  • Learn JavaScript

    • Introduction of JavaScript
    • Data Type in JavaScript
    • Variable in JavaScript
    • Oprator in JavaScript
    • Cond. Statement in JavaScript
    • Loop in JavaScript
    • Array in JavaScript
    • Function in JavaScript
    • Date in JavaScript
    • String in JavaScript
    • DOM in JavaScript
    • Event Handling in JavaScript
    • Form Handling in JavaScript
  • Learn PHP-MYSQL

    • Introduction of PHP
    • Decision Control in PHP
    • Loop in PHP
    • Array in PHP
    • Function in PHP
    • Form Handling in PHP
    • File Inclusion in PHP

Form Handling in HTML

What is an HTML Form ?
  1. An HTML form is a section of a document containing normal content, markup and special elements called controls.
  2. HTML forms are used to pass data to a server.
  3. 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:
  1. <border> Sets the border width in numerical values from 0 and up.
  2. <cellspacing> Empty space between table data cells.
  3. <cellpadding> Empty space between the edge of a cell and cell content.
  4. <align>Aligns the table to the left, right or center.
  5. <width> and <height> The width/height of the table; measured in pixels or percentage.
  6. <bgcolor> Background color for all cells that do not have a background color or image specified.
  7. <background> Background image for all cells that do not have a background color or image specified.
  8. <bordercolor> Border color for the table.

Advertisements

 

©  2014 All Rights Reserved  •  Design by >Nishant Gupta.

Privacy Policy • Terms of Use