Fieldset creates a table like box surrounding some data. Legend adds a title text to the fieldset area.
The basic structure for the fieldset and legend is :
As noted in the example, and as with all normal HTML tags, you can apply CSS coding to adjust its appearance in many ways. The ALIGN property allows the whole fieldset to be placed horizontally on the page. Using the CSS text-align will affect the stuff showing inside of the fieldset.
The basic structure for the fieldset and legend is :
|
<fieldset> <legend> Title text here </legend> Stuff to show within field here. </fieldset> |
As noted in the example, and as with all normal HTML tags, you can apply CSS coding to adjust its appearance in many ways. The ALIGN property allows the whole fieldset to be placed horizontally on the page. Using the CSS text-align will affect the stuff showing inside of the fieldset.

