Semantically, we shouldn't do it this way but it validates and works.
[html]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
</head>
<body>
<fieldset>
<legend><span style="border:1 px solid">Text</span></legend>
<p>More text</p>
</fieldset>
</body>
</html>
[/html]
<fieldset> is actually supposed to be inside a <form> and even a <p> so I'm surprised it validated.
I've seen this somewhere before but never did it myself. I would have done it differently but don't have time tonight.
Comment