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

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,783 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!