<!DOCTYPE html>
<html>
<body style="width: 0">
<fieldset>
<legend>This is legend text</legend>
This is other text
</fieldset>
</body>
</html>