Password hide in HTMLIn this article, we will learn how to hide the password field in a form using HTML. At the beginning of this article, we will learn some HTML basics, It is one of the important elements of HTML. The consists of two mandatory attributes and some optional attributes. elementThe input element is used to insert various controls in the form, such as text boxes, files, passwords, emails, etc. The input element is applied in the form using tag. Password can also be the part of the data entered in HTML forms. Instead of displaying original characters, either asterisk (*) or dots (.) are shown when a password is entered. Thus the entered characters are masked or hidden. To make a textbox that can hide the entered characters, the type attribute of element should be set to "password." Syntax:All the attributes used with textbox are also supported by password input element. The various attributes used with are given below:
Let's explain the element with the help of various examples: Example 1:Output: The output of this example is given below: Example 2:Output: The output of this example is given below: Next TopicHTML MCQ
|