How to create input field with specified maxlength (maximum length for input) in HTML

1 Answer

0 votes
<!DOCTYPE html>
<html>
<body>

<form action="">
Company name: <br / >
<input type="text" name="companyname" value="" maxlength="8">
<br /><br />
<input type="submit">
</form>

</body>
</html>

 



answered Jan 4, 2019 by avibootz

Related questions

...