Use fieldset labels to achieve groupbox layout effect similar to winform

Source: Internet
Author: User
Fieldset labels have never been used before, but I have never heard of them. For more information, see ASP. net Ajax document. When we see that it appears something similar to groupbox in winform In the webpage for example, we feel that the layout is very organized. I felt very good. I checked the source file to know that I used the fieldset tag. Its format is as follows: < Fieldset >
  < Legend > The title of fieldset. </ Legend >
</ Fieldset >

In fact, I personally think it may be better to use fieldset layout on the user registration interface. Some websites have mandatory and optional items, if you use fieldset to separate individuals, you will feel more humane.

< Fieldset >
< Legend > User Registration required </ Legend >
< Ul >
< Li Style = "Width: 50px; display: inline ;" >
< ASP: Label ID = "Label1" Width = "80px" Runat = "Server" Text = "User Name" > </ ASP: Label > </ Li >
< Li Style = "Width: 150px; display: inline ;" >
< ASP: textbox ID = "Tbx_username" Runat = "Server" Width = "150px" > </ ASP: textbox > </ Li >
</ Ul >
< Ul >
< Li Style = "Width: 50px; display: inline ;" >
< ASP: Label ID = "Label2" Width = "80px" Runat = "Server" Text = "Password" > </ ASP: Label > </ Li >
< Li Style = "Width: 150px; display: inline ;" > < ASP: textbox ID = "Tbx_password" Runat = "Server" Width = "150px" > </ ASP: textbox > </ Li >
</ Ul >
< Ul >
< Li Style = "Width: 50px; display: inline ;" >
< ASP: Label ID = "Label3" Width = "80px" Runat = "Server" Text = "Confirm Password" > </ ASP: Label > </ Li >
< Li Style = "Width: 150px; display: inline ;" > < ASP: textbox ID = "Tbx_confirm" Runat = "Server" Width = "150px" > </ ASP: textbox > </ Li >
</ Ul >
< Ul >
< Li Style = "Width: 50px; display: inline ;" >
< ASP: Label ID = "Label4" Width = "80px" Runat = "Server" Text = "Email" > </ ASP: Label > </ Li >
< Li Style = "Width: 150px; display: inline ;" > < ASP: textbox ID = "Tbx_email" Runat = "Server" Width = "150px" > </ ASP: textbox > </ Li >
</ Ul >
</ Fieldset >
< Fieldset >
< Legend > User Registration </ Legend >
< Ul >
< Li Style = "Width: 50px; display: inline ;" >
< ASP: Label ID = "Label5" Width = "80px" Runat = "Server" Text = "Real Name" > </ ASP: Label > </ Li >
< Li Style = "Width: 150px; display: inline ;" >
< ASP: textbox ID = "Tbx_realname" Runat = "Server" Width = "150px" > </ ASP: textbox > </ Li >
</ Ul >
</ Fieldset >

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.