Welcome to the Treehouse Community
Looking to learn something new?
Submit 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.
Thanks, not sure why i thought it was single quotes.
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
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.
Huh, 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.