text border around in css code example
Example 1: text border css
h1 {
-webkit-text-stroke: 1px black;
}
Example 2: how to add a border around text in html
<p style="border:3px; border-style:solid; border-color:#FF0000; padding: 1em;">
First example with text surrounded by a red border.<br>This example also has multiple lines.
</p>