Tutorials

KodeKite Tools

HTML
Flexbox
SVG
Canvas
HTML Tutorial

More


HTML Input Password
Input Password

Input Password type is used to create simple and single text field for user password, input is an open tag. Password field is used in forms to collect password from users and it displays nothing only filled circles.

Syntax

<input type=password />


You can use password field any where within an HTML document.


Example

Password:

Input is unpair tag and output of password field is user data like you can see in above example.


Practice Task

Open notepad or any other text editor, follow the following points.


  • Create one password field for user password
  • Now add submit button of type=submit
  • Use <br /> to separate input fields on new line

save file with name task.html or task.htm and then open it using any browser and see results.


Solution



Don't forget input is empty element which means it always comes in single not in pair.