AndrewMk AndrewMk - 1 year ago 86
HTML Question

Legend tag does not display

I try the

tag in html, but it does not display at all.
I reviewed W3school legend tag and it does not seem to be a deprecated tag.
Why the style of the tag (the bordert that passes through the word that I write) does not show like in w3school example?

<legend>Form Input</legend>

Answer Source

You need to have <fieldset> around <legend> and all of the content inside the <form>. Here is your better code:

<legend>Form Input</legend>

w3schools does also say this in the editor

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download