
To Get the above result in a form please go thought the following code…
<html>
<head>
<title>Form Design</title>
<style>
fieldset
{
border: 1px solid #781351;
width: 20em
}
legend
{
color: #fff;
background: #758958;
border: 1px solid #781351;
padding: 2px 6px
}
</style>
</head>
<body>
<form action=”#”>
<fieldset>
<legend>Testing Form</legend>
<p><label for=”name”>Name</label> <input type=”text” id=”name” /></p>
<p><label for=”e-mail”>E-mail</label> <input type=”text” id=”e-mail” /><br /></p>
<p class=”submit”><input type=”submit” value=”Submit” /></p>
</fieldset>
</form>
</body>
</html>