How do we add the width in characters for <input> in HTML?

HTMLWeb DevelopmentFront End Technology

Example

 Live Demo

<!DOCTYPE html>
<html>
   <body>
      <form action = "">
         Subject: <input type = "text" name="sub" maxlength = "10" size = "10"><br>
         <input type = "submit" value = "Submit">
      </form>
   </body>
</html>

Output

raja
Published on 14-Mar-2018 10:40:09
Advertisements