With or without Tailwind CSS, an HTML <fieldset> can be boxed in with a <legend> inside the box line. How can this be done w/o using <fieldset> when the same look is desired but when it is not part of a <form>, aside from just dropping the <form> using Tailwind CSS.
Such as, in this example, using a <div> & <h2>.
<!DOCTYPE html>
<html lang='en-US'>
<head>
<meta charset='UTF-8' />
<meta name='viewport' content='width=device-width, initial-scale=1.0' />
<link href='tailwind.css' rel='stylesheet'>
</head>
<body class='p-3'>
<fieldset class='p-3 border border-black'>
<legend>A Legend Title</legend>
Blah blah. Blah blah.
</fieldset>
<div class='p-3 border border-black'>
<h2>A Heading</h2>
Blah blah. Blah blah.
</div>
</body>
</html>
