Explore a little.C ProgrammingC++HTMLVisual BasicSystem AnalysisE-CommerceBCA Notes
LEARN SOMETHING NEW

Password in Html

Read4BCA learning libraryFree access

Password in Html

To define password field

This is used to get the password from users.
It is defined using input element and the type of text to be mentioned as password.
It is same as that of textbox but it provides security by masking the character field.


Example:

<!DOCTYPE html>
<html>
<head>
<title>Password</title>
</head>

<body>
Username
<input type="text">
<br>Password <input type="password">
</body>
</html>

Output of this code will look like this:

Password in Html example

This lesson preserves the original Read4BCA material. Some programming examples use older tools and syntax. View original page.