# Problem with "Style Text Inputs as Form Controls"

**URL:** <https://forum.freecodecamp.org/t/problem-with-style-text-inputs-as-form-controls/50003>\
**Category:** General\
**Created:** [October 29, 2016, 6:14pm UTC](https://forum.freecodecamp.org/t/problem-with-style-text-inputs-as-form-controls/50003 "2016-10-29T18:14:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregwilliams87](https://avatars.discourse-cdn.com/v4/letter/g/35a633/32.png) [@gregwilliams87](https://forum.freecodecamp.org/u/gregwilliams87)\
**Post date:** [October 29, 2016, 6:14pm UTC](https://forum.freecodecamp.org/t/problem-with-style-text-inputs-as-form-controls/50003/1 "2016-10-29T18:14:38Z")

</div>

I can’t pass the first two cases on this challenge. They are:

1. Give the submit button in your form the classes btn btn-primary.
2. 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?**

---

<div class="post-metadata">

**Author:** ![cheesysaurus](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/cheesysaurus/32/96416_2.png) [@cheesysaurus](https://forum.freecodecamp.org/u/cheesysaurus)\
**Post date:** [January 27, 2017, 8:34pm UTC](https://forum.freecodecamp.org/t/problem-with-style-text-inputs-as-form-controls/50003/2 "2017-01-27T20:34:47Z")

</div>

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](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!

---

<div class="post-metadata">

**Author:** ![carlohs](https://avatars.discourse-cdn.com/v4/letter/c/a9a28c/32.png) [@carlohs](https://forum.freecodecamp.org/u/carlohs)\
**Post date:** [May 11, 2017, 10:36pm UTC](https://forum.freecodecamp.org/t/problem-with-style-text-inputs-as-form-controls/50003/3 "2017-05-11T22:36:08Z")

</div>

Thanks, this helped me!!! 🙂

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 16, 2021, 1:09pm UTC](https://forum.freecodecamp.org/t/problem-with-style-text-inputs-as-form-controls/50003/4 "2021-01-16T13:09:01Z")

</div>

Closed on January 16, 2021, 1:09pm UTC


