Help me fix my html codes

Asked By 0 points N/A Posted on -
qa-featured

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/>

 

SHARE
Best Answer by Gideon Yasti
Best Answer
Best Answer
Answered By 0 points N/A #102312

Help me fix my html codes

qa-featured

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 0 points N/A #102313

Help me fix my html codes

qa-featured

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

 

Login/Register to Answer

Related Questions