<legend> Tag in HTML 5

In this article I am going to explain about <legend> tag in html 5
  • 1751
Definition

The <legend> tag use for display any text or message between field set line in html document. Its mainly use within <fieldset> tag.

Browser that supports <legend> tag

 Internet explorer, Mozilla firefox, Google chrome, Opera and Safari browsers.

Lets take an example of <legend> tag

<html>
  <head>
      <form>
         <fieldset>
           <legend>Your massage</legend>
         </fieldset>
       </form>
   </head>
</html>

Output
leagen.jpg

Further Readings

You may read more about HTML 5 Tags:  here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

© 2020 DotNetHeaven. All rights reserved.