Asked By
Chloe Lee
0 points
N/A
Posted on - 04/06/2012
I have multiple forms on my webpage but they are all coming out as big one.
What's going on?
Here are my codes.
First Name: <input type ="text" name="firstname /"><BR/>
Last Name:<input type="text" name="lastname/"><BR/>
Contact Number:<input type="text" name="contactnumber"/><BR/>
Email Address:<input type="text" name=emailaddress"/><BR/>
Â
Help me fix my html codes
Manage Text Field in Form :
You used the code:
First Name: <input type ="text" name="firstname /"><BR/>
Last Name:<input type="text" name="lastname/"><BR/>
Contact Number:<input type="text" name="contactnumber"/><BR/>
Email Address:<input type="text" name=emailaddress"/><BR/>
Here has no size limit for your text box in that form. So you should add size for every text field in your form.
You can change the size of the text field by changing the size value in that script.
Here following my codes for you:
Â
First Name:
<input name="firstname /" type ="text" size="20"><BR/>
Last Name:Â Â Â
<input name="lastname/" type="text" size="15"><BR/>
Contact Number :
<input name="contactnumber" type="text" size="15"/><BR/>
If you will increase the value of size then your text field area will also increase.
You can also add maximum character limit for the text field area of that form. Here following my codes :
Â
First Name:
<input name="firstname /" type ="text" size="20" maxlength="20" />
<BR/>
Last Name:Â Â Â
<input name="lastname/" type="text" size="15" maxlength="20"><BR/>
Contact Number :
<input name="contactnumber" type="text" size="15" maxlength="15"/><BR/>
Email Address:
<input name=emailaddress" type="text" size="20" maxlength="25"/><BR/>
You can change maxlength value for increase or decrease it.
Thanks
Answered By
common
0 points
N/A
#102313
Help me fix my html codes
Hi Lee,
I will give you a solution BUT I do need a complete HTML code (with CSS)
It seems like the inline CSS is applying to the form elements
Looking forward to your reply
Thanks
common
Add Skype: htmlexpert
Thanks
Â