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 trial
matthew steiner
6,264 PointsWhy is a Radio button an Input element instead of a Button element?
It was seem since the radio button element is a BUTTON, that we should use the Button HTML, right? Why doesn't it use that syntax?
1 Answer
Shawn Gregory
Courses Plus Student 40,672 PointsMatthew,
While the name is indeed called a radio button, it's really a toggle that a user uses to select a value and thus equates to an input as it is a way for a user to input a value into the form. The reason why it's called a button is because a user clicks the element like a button. But remember that a button performs an action while the radio button allows a user to select a value to use as input. Hope this clears things up.
Cheers!
matthew steiner
6,264 Pointsmatthew steiner
6,264 PointsGot it! Thanks!