Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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

It is a common thing that if you have some login that creates the title element content to finish with several new lines in it. For example:

   Title |
   Category |
   My Site Name

Does this has some semantic falls? Is it bad for SEO?

share|improve this question
up vote 3 down vote accepted

New lines do not affect SEO. That won't hurt you at all.

share|improve this answer

Search engines mostly ignore whitespaces in HTML code so this should definitely not affect SEO.

share|improve this answer

I would say NO, because if they do affect SEO it means that Google sees differently also:

<p>hello babe</p>


which are exactly the same thing and are rendered exactly in the same way by any browsers.

share|improve this answer
Quick question: If one was working in PHP and added a \n to their title in code, would that affect it? – Eli Gundry Nov 21 '10 at 18:11
@Eli Gundry: no a \n in PHP code printed out in the page title is rendered as new line so we go back to my answer: it's just a new line ignored by SEO. A \n in PHP code that is not even printed out in page is sill ignored by SE because they luckily don't have a chance to look into your PHP script source code. – Marco Demaio Nov 22 '10 at 20:13

No, it won't affect your SEO, Amit is right: Google ignores whitespace as many designers are not aware of structuring HTML, Google understands the fact well, but - maybe in future it will.

What I would like to ask you is why you are going to do that. I don't think you are going to be benefited in any aspect by doing so.

share|improve this answer

No, though if it's doing something like this throughout the code it could create a small amount of drag because of the extra whitespace. You may want to investigate minifying your code.


share|improve this answer

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.