Give border title in div

<div id="form" style="width:350px;">
   <fieldset>
      <legend style="color:blue;font-weight:bold;">General Information</legend>
      <table>
         <tr>
            <td><span style="text-decoration:underline">C</span>hange Password To:</td>
            <td><input type="text"/></td>
         </tr>
         <tr>
            <td><span style="text-decoration:underline">C</span>onfirm Password:</td>
            <td><input type="text"/></td>
         </tr>
      </table>
   </fieldset>
</div>

The image is possibly using a fieldset tag instead of a div, inside a fieldset you can use the tag legend and it will automatically position there.

<fieldset>
<legend>General Information</legend>
</fieldset>