Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

From an SEO point-of-view, which version is better:

<input type="text" name="q" value="search" />

or

<input type="text" name="query" value="search" />

Here's another example:

<input type="text" name="e" value="email" />

or

<input type="text" name="email" value="email" />

In other words: Does Google use the HTML input name attribute?

share|improve this question

2 Answers 2

up vote 6 down vote accepted

There is no SEO value in this. This is not content. Use form names that makes the server side programming cleaner and easier to manage. This is way over-thinking SEO.

share|improve this answer
4  
That seems to happen a lot. SEO is rather simple if you don't make it complicated. –  closetnoc May 10 at 1:25

When you use the HTTP GET method to submit the form, and the produced URL is allowed to be crawled/indexed, then it can matter for SEO in the way that it’s just another part of your URL.

<input type="text" name="e" /> might produce an URL like:
http://example.com/index?e=foo

<input type="text" name="email" /> might produce an URL like:
http://example.com/index?email=foo

If or to which extent such signals in the URL may matter for SEO is discussed in various questions here.

One thing is sure: If these URLs are indexed and a user is searching for "email", many search engines (including Google) will highlight occurences of this term in the search result snippet. This may lead to more clicks, even more so if the term in question is not also part of the page title/description.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.