Trouble with input and buttons with bootstrap

Trouble with input and buttons with bootstrap
0

#1
 <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.


#2

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>


#3

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.