logo
g Text Version
Auto
Beauty & Self
Books & Music
Career
Computers
Education
Family
Food & Wine
Health & Fitness
Hobbies & Crafts
Home & Garden
Money
News & Politics
Relationships
Religion & Spirituality
Society & Culture
Sports
Travel & Leisure
TV & Movies

dailyclick
Bored? Games!
Postcards
Astrology
Take a Quiz
Rate My Photo

new
Ethnic Beauty
Adolescence
Middle Eastern Culture
Yoga
Vision Issues
Paper Crafts
Comedy Movies


dailyclick
All times in EST

Low Carb: 8:00 PM

Full Schedule
g
g HTML Site
Elizabeth Connick
BellaOnline's HTML Editor

g

The HTML Form - Password Input Tag - 2
Guest Author - Diane Cipollo

As in the last tutorial the password input tag does not have a closing tag </input>. Also the element name is still input.

Type Attribute
Here we must set the value of the type attribute to password to tell the web browser to hide the password as it is typed into the input field.

Name Attribute
As with the text input tag, you will set the value of the name attribute to something that represents the purpose of this input tag. I have set the value to password.

Value Attribute
It is a good practice to have the password input field to be blank initially. So here the value of the value attribute is set to null. This is done by putting two quotation marks after the equal sign.
value=""

Size Attribute
It is a common practice to set the value of the size attribute to the same number of characters as used for the username input field. A good size is 30 characters.
size="30"

Maxlength Attribute
Usually you are asked to choose a password when you sign up for a new account and you are given a maximum number of characters that you can have in that password. You will want to set the value of the maxlength attribute to this maximum number of characters. This will help to prevent new members/customers from creating a password that is too long.

← Back

|



RSS | Previous Features | Site Map

Add The+HTML+Form+%2D+Password+Input+Tag+%2D+2 to Twitter Add The+HTML+Form+%2D+Password+Input+Tag+%2D+2 to Facebook Add The+HTML+Form+%2D+Password+Input+Tag+%2D+2 to MySpace Add The+HTML+Form+%2D+Password+Input+Tag+%2D+2 to Del.icio.us Digg The+HTML+Form+%2D+Password+Input+Tag+%2D+2 Add The+HTML+Form+%2D+Password+Input+Tag+%2D+2 to Yahoo My Web Add The+HTML+Form+%2D+Password+Input+Tag+%2D+2 to Google Bookmarks Add The+HTML+Form+%2D+Password+Input+Tag+%2D+2 to Stumbleupon Add The+HTML+Form+%2D+Password+Input+Tag+%2D+2 to Reddit


Content copyright © 2009 by Diane Cipollo. All rights reserved.
This content was written by Diane Cipollo. If you wish to use this content in any manner, you need written permission. Contact Elizabeth Connick for details.

g


For FREE email updates, subscribe to the HTML Newsletter


Past Issues


print
Printer Friendly
bookmark
Bookmark
tell friend
Tell a Friend
forum
Forum
email
Email Editor

g features
What's Coming in HTML 5

What is FTP?

HTML Fundamentals - Tables

Archives | Site Map

forum
Forum
email
Contact

Past Issues
memberscenter

jobs
what
job title, keywords
where
city, state or zip
jobs by job search


vote
Growing a Garden
Veggies and Flowers
Veggies Only
Flowers Only
No Garden

g


| About BellaOnline | Privacy Policy | Advertising | Become an Editor |
Website copyright © 2009 Minerva WebWorks LLC. All rights reserved.


BellaOnline Editor