'fieldset' groups 'form' elements by drawing a rectangle : fieldset « Form « HTML / CSS






'fieldset' groups 'form' elements by drawing a rectangle

 
    
<html>
<head>
<title>fieldset element example</title>
</head>
<body>
    <form name="form1" method="post" action="">
    <p>
        <fieldset>
        <input type="text" name="textfield1" value="First text field in first fieldset"size="60">
        <br>
        <input type="text" name="textfield2" value="Second text field in first fieldset"size="50">
        </fieldset>
    </p>
    </form>
    <form name="form2" method="post" action="">
    <p>
        <fieldset>
        <input type="text" name="textfield3" value="First text field in second fieldset"size="65">
        <br>
        <input type="text" name="textfield4" value="Second text field in second fieldset"size="45">
        <br>
        <input type="text" name="textfield5" value="Third text field in second fieldset"size="55">
        </fieldset>
    </p>
    </form>
</body>
</html>
    
      
        
  








Related examples in the same category

1.Fieldset and Legend Example
2.Form field set with legend
3.Style for form fieldset
4.Use fieldset to create a set of form controls
5.Fieldsets and labels
6.Set border for fieldset
7.borderless fieldsets
8.Set fieldset border to dashed style
9.Organizing Elements With fieldset and legend Elements
10.noframes for frameset
11.utf-8 charset page
12.nested fieldset background-color: #efefef;
13.fieldset padding: 1em;
14.fieldset margin: 2em 0;
15.fieldset border: 1px solid #ccc;
16.fieldset background-color: #dfdfdf;
17.fieldset margin-bottom: 1em;
18.fieldset border: 1px solid #888; border-right: 1px solid #666; border-bottom: 1px solid #666;
19.fieldset border: 3px solid rgb(234, 234, 234);
20.fieldset background: rgb(244, 244, 244);
21.Fieldset and Legend
22.Fieldset Background
23.Fieldset Alternating
24.fieldset font-size:12px; padding:10px; width:250px;text-align:right;
25.fieldset font-size:12px; padding:10px; width:250px; line-height:1.8;
26.Using legend for fieldset
27.>Organizing Elements With fieldset and legend Elements
28.The fieldset element
29.Removing the border from fieldsets
30.Nested Fieldset Example
31.fieldset border: 1px solid royalblue;
32.Element Subgroups