Saturday 26 February 2022

HTML document for password field (Form Tag)

 PASSWORD FIELD

Code :

<!doctype html>

<html>

    <head>

       <title>Pasword Field in Form</title>

       <style>

         .id

         {

             margin-left: 10%;

         }

         #login

         {

             margin-left: 70%;

             background: skyblue;

             color: black;

         }

       </style>

    </head>

    <body>

       <h1>Password field and Text control :</h1>

       <fieldset><legend>Log in</legend>

       <form>

          <label for="name">Username : </label>

          <input class="id" required type="text" name="loginc" maxlength="60"

           id="name"

           placeholder="Enter Username"><br><br>

          <label for="pwd">Password :<br>(min 8 char)</label>

          <input class = "id" name="loginc" type="password" required

           id="pwd"

           minlength="8"

           maxlength="12" placeholder="password"><br><br>

           <input name="loginc" type="submit" value="Log in"

            id="login" onclick="alert('Its Clone!')">

       </form>

       </fieldset>

    </body>

</html>

Web View :

Come again Learn again !

« iCodeBuzz »

No comments:

Post a Comment