HTML-Forms

HTML has <form> tag to define a form.

Form can contain input elements such as - Textbox, Checkbox, Radio-Buttons etc.  Purpose of form is to send data of form to server for processing


HTML Forms Syntax

Form are defined start tag of Form element.

 

<form>

.... Define elements in form

 

</form>

 


Sample Code

<form>
 Name:< input type="text" name="name"><br>
Profession:< input type="text" name="profession">

 

<input type="radio" name="sex" value="male">Male<br>
< input type="radio" name="sex" value="female">Female

<input type="checkbox" name="Skill" value="HTML">I know HTML<br>
< input type="checkbox" name="Skill" value="CSS">I know CSS

<p>First paragraph</p>

 






Attributes    Blocks    Color-Values    Colornames    Colors    Comments    CSS    Editors-for-writing-html    Elements    Entities    Formatting-in-HTML    Forms    Head    Headings    HTML-Reference    IFrames    Image    Javascript    Layouts    Links    Options for building websites    Paragraphs    pointers and questions    Symbol-for-Mathmatics    Symbol-for-Punctuations    Symbols    Tables    Whats-new-in-HTML5   

Advertisement

Topics