How to use legend tag


<legend>

All Tags not showing in online page, but show on view source.

<form>
<fieldset>
	<legend>Fill Form</legend>
    Your Name: <input type="text"><br>
    Your Email ID: <input type="email"><br>
</fieldset>
</form>

Code show like this:

Fill Form

Your Name:
Your Email ID:

Browser Support

The <legend> tag is supported in all major browsers.

What is legend tag

legend tag used to a caption for the fieldset tag.

Leave a Reply

Your email address will not be published. Required fields are marked *