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

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

new
Creativity
Family Travel
Southwest USA
Irish Culture
Home Finance
Comedy Movies
Romance Novels


dailyclick
All times in EST

Full Schedule
g
g HTML Site

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

|


This site needs an editor - click to learn more!

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




RSS | Editor's Picks Articles | Top Ten Articles | Previous Features | Site Map


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


Content copyright © 2014 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 BellaOnline Administration for details.

g


g features
What's Coming in HTML 5

What is FTP?

HTML Fundamentals - Tables

Archives | Site Map

forum
Forum
email
Contact

Past Issues
memberscenter


vote
Poetry
Daily
Weekly
Monthly
Less than Monthly



BellaOnline on Facebook
g


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


BellaOnline Editor