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 >