How to make sure an input is required?

#1

How can I make my input required?

#2
<form action="/action_page.php">
  Username: <input type="text" name="usrname" required>
  <input type="submit">
</form>