<form>
  <input name="q" required>
  <input type="submit" value="提交">
</form>