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






'legend' Example

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








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