Browse Source

Mark fields as required

tags/v1.0.0
Chris Smith 5 years ago
parent
commit
6fd2c0dab7
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      form.html

+ 3
- 3
form.html View File

68
         <form action="submit" method="post">
68
         <form action="submit" method="post">
69
             <h1>Contact me</h1>
69
             <h1>Contact me</h1>
70
             {{ .csrfField }}
70
             {{ .csrfField }}
71
-            <input type="text" name="name" placeholder="Your name">
72
-            <input type="email" name="from" placeholder="Your e-mail address">
73
-            <textarea name="message" placeholder="Your message"></textarea>
71
+            <input type="text" name="name" placeholder="Your name" required>
72
+            <input type="email" name="from" placeholder="Your e-mail address" required>
73
+            <textarea name="message" placeholder="Your message" required></textarea>
74
             <button>SEND</button>
74
             <button>SEND</button>
75
         </form>
75
         </form>
76
     </div>
76
     </div>

Loading…
Cancel
Save