Legend HTML

HTML <legend> Tag To insert a title or caption to the <fieldset> tag, the HTML <legend> tag is used. For this, the first child of the HTML <fieldset> tag should be the HTML <legend> tag. Thus understanding the purpose of the grouped form elements becomes easy. Syntax: <legend>Content<legend> Example: <!DOCTYPE html> <html> <body> <form> <fieldset> … Read more