Trouble with input and buttons with bootstrap

 <input class="form-control" type="text" placeholder="cat photo URL" required>
 <button class="btn btn-primary"><i class="fa fa-paper-plane">Submit</i></button>

I’m getting two error messages for:

Give the submit button in your form the classes btn btn-primary.
Add a within your submit button element.

Also, I wish I knew how to copy my code correctly. I know it looks atrocious, but I don’t know what keys to do a proper copy/paste on a Mac.

In your button element it should have "type=“submit”, like so:
<button type="submit" class="btn btn-primary"><i class="fa fa-paper-plane"></i>Submit</button>

1 Like

very nice. yes, the button needs type=submit, but I have ran into browsers that don’t like the required statement in input and ignore it. I found that if you format the input tag like this:

<input class="form-control" type="text" placeholder="cat photo URL" required="required">

All current browsers I tested recognized this.