Download
    Interview Question     &Answer
Main Menu
HTML Form@ Shwetank education.com
Defination-  HTML Forms are used to select different kinds of user input.

The most used form tag is the <input> tag. The type of input is specified with the type attribute. The most commonly used input types are explained below.
Syntax of HTML Form <FORM ACTION="..."> method="">[ get or post ]
<INPUT TYPE="hidden" NAME="subject" VALUE="Title of Form">
Example
<form> First name: <input type="text" name="firstname" />
Last name: <input type="text" name="lastname" />
</form>
Output
First name:
Last name:

Radio Buttons
Radio Buttons are used when you want the user to select one of a limited number of choices.
Example
<form> <input type="radio" name="language" value="english" />English
<input type="radio" name="language" value="hindi" />Hindi
</form>
Output
English
Hindi

Checkboxes
Checkboxes are used when you want the user to select one or more options of a limited number of choices.
<form> You are a good Boy:
<input type="checkbox" name="choose" value="Good" />
You are Not a good Boy:
<input type="checkbox" name="choose" value="Not Good" />
You have a both : <input type="checkbox" name="choose" value="Both" /> </form>
Output
You are a good Boy:
You are not a good Boy:
You have a Both:

Submit Button
<form name="input" action="html_form_submit.asp" method="get"> EmailID: <input type="text" name="EmailID" />
<input type="submit" value="Submit" />
</form>
Output
EmailID:

Password
Note- When you type character in a password field, the browser display astriks or bullet insted of the character
Example
<form>
<input type= "password" name=" Password">
</form>
Output

Combo box or Drop-Down List
<select name="" id="">
<option value="Select">Select</option>
<option value="ASP">ASp</option>
<option value="Php">PHP</option > </select>
Output

Textarea
Write Multiple text in this field
<textarea rows="5" cols="30">
</textarea>
Output
IT  Projects Links
M-Tech Thesis
Php Project
Java Project
Asp.Net Project
Android Project
Vb .Net Project
Html Project

------------------------------- Electronics  Project
Networking
Embedded system
Telecom
Robotics
CCNA
------------------------------- Latest IT  News


Copyright 2010-2015    shwetankeducation.com
Privacy & Terms