JSFiddle - React, Tailwind, and code Playground
HTML
<fieldset>
<legend>text</legend>
</fieldset>
CSS
body{
background: url('http://www.planwallpaper.com/static/images/Free-Wallpaper-Nature-Scenes.jpg') no-repeat center top;
background-size: cover;
}
fieldset{
border: 5px solid #f00;
}
legend{
font-size: 30px;
color: #f00;
}