Ok, I know how fieldset/ works legendin HTML. Let's say you have a form with several fields:
<form>
<fieldset>
<legend>legend</legend>
<input name="input1" />
</fieldset>
</form>
What should I use for legend? It appears as title , but is the legend semantically an explanation of the content? In my opinion, it is advisable that you do something like this:
<form>
<fieldset>
<legend>* = required</legend>
<label for="input1">input 1 *</label><input id="input1" name="input1" />
</fieldset>
</form>
But this does not work with field visualization. Is this just an ambiguous name in HTML, or is it my misunderstanding of the English word "legend"?
Edit: fixed some bugs; -)
source
share