.

how to create label and textbox in html

Both boxes are in one row and have fixed width.

Step 1: Create a label element. I think a TextBox cannot be casted to a Label but u can do this by an alternate way. body{ background-color: red; } label { display: block; min-width: 150px; } .test { display: inline-block; width: 45%; background-color: white; border: solid 1px blue; padding: 5px Example: Student Model. Assigning a value of block to the display property makes the element behave as a block element, such as a

. You can create a