I can’t pass the first two cases on this challenge. They are:
- Give the submit button in your form the classes btn btn-primary.
- Add a within your submit button element.
Here’s the relevant code section:
<input class="form-control" type="text" placeholder="cat photo URL" required>
<button class="btn btn-primary"><i class="fa fa-paper-plane"></i>Submit</button>
What am I doing wrong?
Hey @gregwilliams87, not sure if you still need help on this, but I just came across the exact same problem and got some answers from the Gitter forum (https://gitter.im/FreeCodeCamp/Help).
Apparently you still need to include the class of type=“submit” within the button element. So the entire thing would look like:
<button class="btn btn-primary" type="submit"><i class="fa fa-paper-plane">"</i>Submit</button>
I don’t know if every form element still requires you to include the type class even when you use Bootstrap, but hopefully this helps!
Thanks, this helped me!!! 