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 trialSandeep Krishnan
9,730 PointsWhat the difference between <Button></button> vs <input type=Button Value = "button"> </input>
The button element I understand can be used in two different types wonder what is the difference in behaviour
2 Answers
Aurelian Spodarec
10,801 PointsHopefully this link here helps.
Sandeep Krishnan
9,730 PointsThanks. I went through this link. It still doen't say much I guess. SO in summary can I assume that if I use and ID then i can easily connect the output to my database via Javascript ?
Aurelian Spodarec
10,801 PointsDid u go throw this? http://web.archive.org/web/20110721191046/http://particletree.com/features/rediscovering-the-button-element/
Anyways, you would use a input type button for a form element, and button more in general like in the layout. At the end you can have same class. You select it with name not I'd, that's why u use input.