input
element with the type
attribute having a value of either "text" or "password" respectively. The input
element is an empty element, i.e. no content appears between the start and end tags, and hence only the start tag <input>
is required."firstname"
. The current value automatically becomes whatever the user types in.
Here's a password text field. This type of text field disguises the user input as a series of asterisks or dots. Try typing in some text to see this in effect.SOURCE CODE
<input type="text" name="firstname">
In the HTML source code, you can insert text and other HTML elements to create 'labels' and to control the presentation of your web form. The example below inserts the word "Password" before theSOURCE CODE
<input type="password" name="login">
input
element. A <br>
tag is then added to place the text field below the label.SOURCE CODE
Password:<br><input type="password" name="login">
textarea
element which requires both a start tag <textarea>
and an end tag </textarea>
. The height of the text field is established by inserting the rows="nn"
attribute-value pair where nn equals the height in number of text lines. The width of the text field is established by inserting the cols="nn"
attribute-value pair where nn equals the width in number of character widths.SOURCE CODE
Your comments:<br>
<textarea rows="15" cols="50" name="comments">
</textarea>
Free Text Editors
Free Graphics Editors
Website Analysis Tools
Free Website Templates
See also:
If you need a .COM web address, you can get one quick and easy at...
<~ BACK | TOP | NEXT ~> |