<html>
<body>
<form action="https://www.w3schools.com/action_page.php" method="post">
<input type="text" name="fname" required>
<input type="submit" value="Submit">
</form>
<p>If you click submit, without filling out the text field,
your browser will display an error message.</p>
</body>
<!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_validation_html by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:39:35 GMT -->
</html>