HTML HTML Forms Choosing Options Radio Buttons

Diego Villaseñor
Diego Villaseñor
12,615 Points

Difference between label and legend?

Hi everyone,

I was just wondering what's the difference between this two tags?

1 Answer

Devin Scheu
Devin Scheu
66,188 Points

Legend is a broad label for a group of objects that you would like to label, whereas label is just for labeling specific elements.

Devin Scheu
Devin Scheu
66,188 Points

Such as I want to name a legend of text boxes Info, but I want to label one username, one password and one description.