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 trialBrian Patterson
19,588 PointsNot sure why the Goodbye button is not working.
I don't know why the Goodbye button is not working.
extends layout.pug
block content
section#content
h2 Welcome, #{name}!
form(action='/goodbye', method='post')
button(type='submit') Goodbye!
footer
p An app to help you study
1 Answer
Joel Bardsley
31,249 PointsThe submit button is a child of the form, so you need to apply the appropriate indentation to the submit button.
Your current code, when compiled to HTML, would have the form element closed before rendering the submit button, which is why it's not working.