'legend' Example : legend « HTML Tag Reference « HTML CSS Reference

'legend' Example

<title>legend element example</title>
   <form name="form1" method="post" action="">
           <fieldset align="center">
               <legend>Credit Card Information:</legend>
               <input type="text" name="textfield" value="Name" size="60">
               <input type="text" name="textfield2" value="Exp. date" size="50">
               <input type="text" name="textfield3" value="Type" size="65">
               <input type="text" name="textfield4" value="Number" size="45">

Related examples in the same category

1.'legend' Syntax and Note
2.'legend' HTML Attributes
3.'legend' Event Handlers
4.'legend' CSS Attributes and JavaScript Style Properties
5.'legend' Microsoft Behaviors
6.'legend' Microsoft Filters
7.'legend' JavaScript Properties
8.'legend' JavaScript Methods
9.'legend' JavaScript Collections
10.'legend' JavaScript Objects