<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
 <title>Test</title>
 <style type="text/css">
  form{
   width:500px;
  }
  .fieldset{
   border:1px solid green;   
  }
  h2{
   margin:0;
   padding:2px;
   color:#fff;
   background:red;
	}
 </style>
 <body>
  <h1>Test</h1>
   <form>
   <div class="fieldset">
    <h2>Legend</h2>
    <p>
     <label>K <input type="text"/></label>
    </p>
   </div>
  </form>
 </body>
</html>