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


"Submit Button" in Forms

I am working with FORMS on the Web Development Track. I am working with the code to create and style a form. But, I want to test my form with a "Submit" button. What code can I use for this button?

3 Answers


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


button[type="submit"] {
    //Insert properties for submit button here

Thanks. I thought that it was more to it. I am trying to test the button submitting the form elements back to my email address. I am assuming the the property is the "mailto: info@mymail.comm"

If you're going to mail things, you probably want to dive into back end programming languages like PHP, as well as email servers.

I am new to this. I have completed the HTML and the FORMS tracks. But the Forms did not show me how to create submit a form, just create one. That is why, I thought I would need to email. However, do you recommend that I move to the PHP track now? Or will mailing be sufficient until I complete the entire Front End Track?

Well, emailing isn't needed for submitting a form, but something like PHP would still be needed to validate and use the data. Unless you want to learn about more HTML and CSS stuff like tables, audio, and video, you should probably move to PHP for now.