Comment: I didn’t study HTML well before, which made me feel very novel when I saw the control group style. Fieldset> tags package part of the form content and generate a set of related forms fields. Next, I will interpret the use of fieldset tags in HTML in detail. Interested friends can learn about it, which may be helpful to you.
1. Repentance
I didn't learn HTML well before, which made me feel very novel when I saw the control group style, so I implemented one with css. But after accidentally touching this tag, I found out so easy. well! Don’t just try it out in the future. You must go deeper and have a comprehensive understanding. Okay, don’t criticize it anymore, it’s just written for yourself, be a warning. Start learning this tag.
2. Brief description
The <fieldset> tag packages a portion of the form content and generates a set of fields for the related form. Extract two meanings from it:
1. Fieldset exists in the form (this is inaccurate);
2. Grouping and packaging function. field:[fiːld] The meaning of field; ranch; wilderness; battlefield; sports field, fieldset is obvious, that is, my territory listens to me. I'll put this series of labels on you.
Where the <legend> tag defines the title for the fieldset element.
<form>
<fieldset>
<legend>health information</legend>
height: <input type="text" />
weight: <input type="text" />
</fieldset>
</form>