Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6049443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:34:40+00:00 2026-05-23T07:34:40+00:00

I have to create a web form in ASP.NET. this is my HTML: <form

  • 0

I have to create a web form in ASP.NET.

this is my HTML:

<form id="form1" runat="server">
<div>
    <asp:Label ID="Label1" runat="server" Text="label" AssociatedControlID="DropDownList1"></asp:Label>
    <asp:DropDownList ID="DropDownList1" runat="server"></asp:DropDownList>
</div>
<div>
    <asp:Label ID="Label2" runat="server" Text="label" AssociatedControlID="TextBox1"></asp:Label>
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
</div>
 <div>
    <asp:Label ID="Label3" runat="server" Text="" AssociatedControlID="Button1"></asp:Label>
    <asp:Button ID="Button1" runat="server" Text="Button" />
</div>
</form> 

Is this the most customizable HTML code by CSS?

Do you usually write a different markup?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:34:40+00:00Added an answer on May 23, 2026 at 7:34 am

    Your HTML looks fine to me. I wouldn’t personally use all those divs but I also don’t know your exact requirements.

    Some people consider a a form to be a list and will code it as:

    <ul>
      <li>
         <label ... />
         <input ... />
      </li>
    </ul>
    

    I don’t do it this way and it depends on how you wish to describe your data.

    Untimately your main consideration is how you want to describe the data you’re marking up. What is the most semantic way and how does that fit in with how you want to style the data. Usually there’s a middle ground if you’ve considered both things well.

    I would also consider grouping your form fields logically using a <fieldset>. This will give you something extea to hook into with your CSS also.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If you create an ASP.NET web file project you have direct access to the
I have created a Web Application in asp.net 2.0. which is working fine on
We have created a web application, using ASP.NET, that allows users to upload documents
I have been learning how to create dynamic images and dynamic stylesheets using ASP.NET
I have created a web page (ASP.NET) that includes a stylesheet to mimic Dynamics
I have an ASP.NET application that authenticates users using Ldap against active directory. This
Normally I create web application projects and use code-behind, but I have a requirement
I'm programming in PHP and would like to create web pages which have email
I have a simple PowerShell script that uses WMI to create a web site
I have several web services I need to create for them some testing mechanism

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.