Overview and usage of fieldset labels in HTML

Source: Internet
Author: User

Comments: Previously, HTML was not easy to learn, which made it very novel to see the style of the control group. fieldset> tags pack part of the Form Content and generate a set of related form fields, the following describes how to use the fieldset tag in HTML. If you are interested, you may find it helpful.

I. Regret
Previously, HTML was not easy to learn. As a result, the style of the control group was very novel, so css was used to implement one. However, it was discovered that so easy only when the label was accidentally touched. Alas! Learn more in the future. Well, if you don't need to worry about it, you can write it to yourself and be alert. Start learning this label.

Ii. Brief Introduction
<Fieldset> the label packs a part of the Form Content and generates a set of related form fields. Extract two meanings:
1. fieldset exists in form (this is inaccurate );
2. Grouping and packaging functions. Field: [fi ː ld] field; pasture; wilderness; battlefield; meaning of sports field, fieldset is obvious, that is, "My website listens to me ". I will attach this series of labels to you.
The <legend> label defines the title for the fieldset element.

The Code is as follows:
<Form>
<Fieldset>
<Legend> health information </legend>
Height: <input type = "text"/>
Weight: <input type = "text"/>
</Fieldset>
</Form>


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.