Difference between revisions of "Forms"

From MyWiki
Jump to: navigation, search
Line 8: Line 8:
 
  </form>
 
  </form>
 
</source>
 
</source>
 +
Also note that the default width of a text field is 20 characters.<br>

Revision as of 16:33, 12 June 2014

http://www.w3schools.com/html/html_forms.asp

 Text Fields
 <input type="text"> defines a one-line input field that a user can enter text into:
 <form>
 First name: <input type="text" name="firstname"><br>
  Last name: <input type="text" name="lastname">
 </form>

Also note that the default width of a text field is 20 characters.