Give Title to Your HTML Forums with Legend tag

HTML Forms need title sometimes, for this we need two kinds of tags

1. <fieldset >

and

2. <legend>

The <fieldset> tag is used to group componenets in a form
The <fieldset> tag  plot a box round the components
The <legend> gives caption for the box

Eg. Code

 

<form method=”POST” action=”–WEBBOT-SELF–“>

<fieldset>

<legend>Form Title</legend>

<input type=”text” name=”T1″ size=”20″>

 

<input type=”button” value=”Button” name=”B2″>

 

 

<input type=”submit” value=”Submit” name=”B1″>

</fieldset>

</form>

Result

 


Form Title


abhilash

abhilash, is a programmer by profession and a technology addict with a passion towards browsing , shopping and imaging . My views may be biased on reviews. all images and videos are copyrighted to respective owners.

1 comment

Your Header Sidebar area is currently empty. Hurry up and add some widgets.