 <p>The <code>&lt;legend&gt;</code> element can contain any <a href="http://www.htmlhelp.com/reference/html40/inline.html" rel="nofollow noreferrer">inline element</a>, so you can apply virtually whatever formatting you'd like.</p>