Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML HTML Forms Form Basics The Input Element

Chris Maybe
Chris Maybe
6,284 Points

words in quotes

Are the words in quotes ("mail", "name", "user_password", etc,) just chosen arbitrarily by the developer or do they have to be in precisely that format in order to fulfill their desired function?

2 Answers

Erik McClintock
Erik McClintock
45,782 Points

Chris,

Those terms are completely up to you. If you wanted, you could give your input a name of 'banana' (though I wouldn't recommend it, unless it somehow made sense!).

Just make sure you refer to the names you give exactly as you gave them (i.e. when referring to an input with the name 'user_name', always check that your spelling, capitalization, and punctuation match exactly; you would see errors if you tried elsewhere to refer to that input by 'User-Name').

Erik

Chris Maybe
Chris Maybe
6,284 Points

I see. Thank you!