You'd usually define this in your stylesheet, but this code might help you understand how it works:
Code:
<div style="border:1px solid black; width:300px;height:200px " class"box">
<div style="font-size:16pt; font-weight:200; text-align:center; margin-top:-10px; background:white; position:absolute; left: 79px; width: 160px;">this is the title here</div>
<p>this is</p>
<p>just</p>
<p>a box</p>
<p> </p>
</div>