Difference between revisions of "Forms"

From MyWiki
Jump to: navigation, search
Line 9: Line 9:
 
</source>
 
</source>
 
Also note that the default width of a text field is 20 characters.<br>
 
Also note that the default width of a text field is 20 characters.<br>
 +
<source lang="html4strict">
 +
<form>
 +
Password: <input type="password" name="pwd">
 +
</form>
 +
</source>

Revision as of 16:34, 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.

<form>
Password: <input type="password" name="pwd">
</form>