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>

Click to view the demo

The code above generates the following result.

Add a border with a caption around your form Use Form Fieldset in HTML and CSS
Home »
  HTML CSS Tutorial »
    Form »
      Form Style
HTML CSS Tutorial Form Style
Add a border with a caption around your for...
Add style for a user registration form in H...