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 trialTearod Robertson
Courses Plus Student 2,693 Points"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
Zack Mowrer
Full Stack JavaScript Techdegree Graduate 62,350 PointsHTML:
<button type="submit">Submit</button>
CSS:
button[type="submit"] {
//Insert properties for submit button here
}
Tearod Robertson
Courses Plus Student 2,693 PointsThanks. 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"
Zack Mowrer
Full Stack JavaScript Techdegree Graduate 62,350 PointsIf you're going to mail things, you probably want to dive into back end programming languages like PHP, as well as email servers.
Tearod Robertson
Courses Plus Student 2,693 PointsI 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?
Zack Mowrer
Full Stack JavaScript Techdegree Graduate 62,350 PointsWell, 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.