You can use a fieldset tag.
<!DOCTYPE html>_x000D_
<html>_x000D_
<body>_x000D_
_x000D_
<form>_x000D_
<fieldset>_x000D_
<legend>Personalia:</legend>_x000D_
Name: <input type="text"><br>_x000D_
Email: <input type="text"><br>_x000D_
Date of birth: <input type="text">_x000D_
</fieldset>_x000D_
</form>_x000D_
_x000D_
</body>_x000D_
</html>
_x000D_
Check this link: HTML Tag