Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Which is better for SEO ?


  1. <p id="hello"></p>

  2. <p id="HELLO"></p>

  3. <p id="Hello"></p>

  4. <p id="hELLO"></p>


  1. function hello(){}

  2. function HELLO(){}

  3. function Hello(){}

  4. function hELLO(){}

share|improve this question

migrated from stackoverflow.com Jun 2 '11 at 3:48

This question came from our site for professional and enthusiast programmers.

up vote 2 down vote accepted

Case sensitivity doesn't matter for SEO. HTML, when used properly, does offer search engines clues about the content of a page but whether those tags and their attributes are capitalized or not is irrelevant. (Although it may matter for validating your HTML depending on the Doctype you choose).

Most search engines don't read JavaScript so that point may be moot. But even if they did the case of function names are also irrelevant.

share|improve this answer

It most likely doesn't matter at all.

share|improve this answer
thanks for answer ... – LostLord Jun 1 '11 at 23:33

I don't think search engine bots bother about html elements, element id's or javascript in the pages, let alone if id's or function names are upper- or lower case. It's headers and content that's interesting for SEO.

share|improve this answer
@KooiInc thanks for attention – LostLord Jun 1 '11 at 23:33

Your Answer


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.