Tutorialspoint

HTML input size Attribute

<!DOCTYPE html>
<html>
   <body>
      <h2>Register</h2>
      <form action="" method="get">
         Id: <input type="text" name="id" placeholder="Enter UserId here..." size = "25" required><br>
         Password: <input type="password" name="pwd" placeholder="Enter password here..." required><br>
         DOB: <input type="date" name="dob" placeholder="Enter date of birth here..."><br>
         Telephone: <input type="tel" name="tel" placeholder="Enter mobile number here..." required><br>
         Email: <input type="email" name="email" placeholder="Enter email here..." size = "35"><br><br>
         <button type="submit" value="Submit">Submit</button>
      </form>
   </body>
</html>

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.