How to use the required attribute to specify that an input field must be filled in HTM

1 Answer

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

<form action="">
 <input type="text" name="companyname" placeholder="Company name" required> 
 <input type="submit">
</form>

</body>
</html>

 



answered Jan 8, 2019 by avibootz
...