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