If you wanted to go the CSS route, then you can enclose the text in a DIV or SPAN tag and specify a border with CSS for those tags. For example:
Code:
<html>
<body>
<div style="border:1pt solid #000">This text is in a box.</div>
<span style="border:1pt solid #000">This text is also in a box.</span>
</body>
</html>
You can then specify padding for the tags as well.