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

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

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

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

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

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

Thanks Charles I have it sorted now.

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

ok this is weird ignore the forward slashes

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.

heres plain text input type = submit value = Submit

or button type = submit >Submit< button

place the text you want between open and closing button tags