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 trialRenee Rhodes
10,653 PointsSubmit button- last item in HTML mastery code challenge
To be clear, I have completed this, but only after seeing someone else's question about it on the forum and the code they were using.
My question is this: I've completed the HTML deep dive, as well as the HTML Forms segment of the Web Design track. I don't recall at all where it says that you can use
<input type="submit">
to create a submit button, so it was extremely frustrating when it would not accept <button type="submit">Submit</button>
, which I very clearly recall learning- and went back over my pages saved in workspaces to see what I did there.
Why would it not accept the code that I learned-twice, and demand code that I am pretty sure was never even mentioned? I remember different types of input code in the lessons, but only the button tag for buttons.
Stephanie Cunnane
7,073 PointsHelpful little animation, thanks.
3 Answers
Renee Rhodes
10,653 PointsThanks, not sure why i thought it was single quotes.
Jason Anello
Courses Plus Student 94,610 PointsIt's single backticks if you want to post short pieces of inline code with your text and it's 3 backticks as shown in the graphic Stone posted if you want to put multiple lines of code in a code block.
Jason Anello
Courses Plus Student 94,610 PointsHi Renee,
I don't remember whether or not the "html" course covered the <button>
element but it did cover the submit input type in the 1st video of that last stage. It starts around 8:10
http://teamtreehouse.com/library/html/forms/inputs
In the more recent "forms" course, using the <button>
element as a submit button seemed to be more of the focus.
I don't know whether you completed both of these courses at the same time but perhaps the button element was fresher in your mind when you tried to complete that last html challenge?
Both examples you gave should technically give you a submit button but perhaps the challenge was looking specifically for what was shown in the video.
I hope that helps clear it up for you.
Renee Rhodes
10,653 PointsHuh, I just completed the HTML deep dive today- I did the entire forms segment just within a few hours before submitting the question. I did the separate Forms course a few weeks ago. I...don't know why I missed that, it never even registered to me that the button added in that video was using the input tag instead of the button tag.
Stone Preston
42,016 PointsStone Preston
42,016 Pointsive formatted your code for you so it will show up. you need to use 3 backticks, not single quotes. see the animation below