Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Zoe Watson
Zoe Watson
3,986 Points

Need help with add a "submit" button with the text "Place Order"

I'm sure i'm entering what we've learned to date correctly "<button type="submit">Place Order</button>" so i'm completely out of ideas. Any help on what i could do differently greatly appreciated.

Thanks

10 Answers

Charles Gray
Charles Gray
19,470 Points

you can add a submit button two ways 1 <input type="submit" value="Submit" > or

  1. <button type="submit">Submit</button>
Charles Gray
Charles Gray
19,470 Points

<input type="submit" value="submit">

Charles Gray
Charles Gray
19,470 Points

/input type="submit" value="Submit" >/

Zoe Watson
Zoe Watson
3,986 Points

Thanks Charles I have it sorted now.

Charles Gray
Charles Gray
19,470 Points

/<button type="submit">Submit</button>/

Charles Gray
Charles Gray
19,470 Points

ok this is weird ignore the forward slashes

jase richards
jase richards
10,379 Points

Chance are you're making the mistake most people make:

Are you doing the submit button in an input tag? You shouldn't be.

<button type="submit">Place Order</button>

That's what you should have.

Charles Gray
Charles Gray
19,470 Points

heres plain text input type = submit value = Submit

Charles Gray
Charles Gray
19,470 Points

or button type = submit >Submit< button

Charles Gray
Charles Gray
19,470 Points

place the text you want between open and closing button tags