Add a border with a caption around your form Use Form Fieldset in HTML and CSS
Description
The following code shows how to add a border with a caption around your form Use Form Fieldset.
Example
<!--from w w w .j a v a2 s .c o m-->
<!DOCTYPE HTML>
<html>
<body>
<fieldset>
<legend>Information: </legend>
<form action="">
Height <input type="text" size="3">
Weight <input type="text" size="3">
</form>
</fieldset>
</body>
</html>
The code above generates the following result.
HTML CSS Tutorial Form Style