what is legend tag in html? why legend tag is used in HTML ?
Share
Talk Programming , Career, Mental Health, Talk Personal Finance ❤️???? Post a query and receive responses ✅
Post a query and receive responses. Ask anything, ASK ITSNP ❤️????
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The <legend> tag can only be used with the <fieldset> tag which works as a caption for the fieldset.
It looks like this:
A legend tag is merely a caption label for a whole something… it may be a form. Normally, we assign a label type to each input tag, but a legend tag serves as a label for a group of items, such as a form or a large number of input tags.
Kei hoina matra fieldset ko caption matra ho jun title jasari use hunxa fieldset maa
Legend tag is used to label the group inside a form (group is defines using Fieldset tag)
for more : https://youtu.be/pVqgJq-RlOk you can watch this video and also read this article for it’s proper implementation https://www.geeksforgeeks.org/html-legend-tag/
a legend tag acts as a title/caption for child elements in a fieldset. example…
reference: https://www.geeksforgeeks.org/html-legend-tag/
<legend> </legend> is a tag used for defining a caption for <fieldset>
Reference:https://www.w3schools.com/tags/tag_legend.asp
The <legend> tag is title of the <fieldset> element which is used to group form elements such as: <input>, <textarea>, etc.