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?

5 Answers 5


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


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


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.

  • Quick question: If one was working in PHP and added a \n to their title in code, would that affect it?
    – Eli Gundry
    Commented Nov 21, 2010 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. Commented Nov 22, 2010 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.


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.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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