required keyword HTML5

How to declare :

<form method=”post” action=””>
<label for=”someInput”> Your Name: </label>
<input type=”text” id=”someInput” name=”someInput” placeholder=”My Name” required>
<button type=”submit”>Go</button>
</form>

Output :
Click on go button without fill the input field and show result.

Leave a Reply