As I men­tioned in a pre­vi­ous post, I wish there was some stan­dard or con­ven­tion or con­sen­sus on what val­ues to attach to the name attribute of com­mon input ele­ments.

I thought it would be a good idea to open up a thread to devote to this very thing, so feel free to add your com­ments below.

First, just so every­one is clear, here is an exam­ple of the code to which I refer:

<input type="text" name="foo" />

The attribute I am ref­er­enc­ing is name="foo". We will be dis­cussing the val­ue for that attribute (in this case, what replaces “foo”).

Here are some sug­ges­tions.

Field pur­pose Name val­ue
A person’s full name Name
First name First­Name
Last name Last­Name
Street address Address
City City
Province Province
State State
Postal code Postal­Code
Zip code Zip­Code
Coun­try Coun­try
Phone num­ber Phone
Fax num­ber Fax
Search term q

What do you think? Do you have any oth­er sug­ges­tions? What are some oth­er com­mon fields?

If you know per­sons who might be inter­est­ed in this idea, please let them know about his thread so they can con­tribute to the dis­cus­sion.

About Kim Siever

I am a copy­writer and copy­ed­i­tor. I blog on writ­ing and social media tips most­ly, but I some­times throw in my thoughts about run­ning a small busi­ness. Fol­low me on Twit­ter at @hotpepper.

Free monthlywriting &social media tips!

Free monthlywriting &social media tips!

Sign up to receive monthly writing and social media tips.

Thanks for signing up for our monthly writing tips!

Pin It on Pinterest