How to Format FIELDSET & LEGEND
When developing a form in the hypertext markup language (HTML), you may find it useful to separate your data into different sections. The fieldset tag separates form controls into a fieldset, a subsection of your main form. The legend tag gives the name to your fieldset so that you can identify each section. If you want to change the formatting of either the fieldset or the legend, you invoke the cascading style sheet (CSS) you are using on your Web page.
Instructions
-
-
1
Open your form Web page in Notepad.
-
2
Locate the <fieldset> tag.
-
-
3
Add the following code, replacing "example" with the class you want to use and "styleexample" with the type of style definition to use, into your fieldset tag:
class="example" style="styleexample"
So the tag should read
<fieldset class="example" style="styleexample">
-
4
Save your document.
-
1