Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

NBSP in H1 heading

about H1 heading tag

11:39 am on Sep 10, 2007 (gmt 0)

New User

10+ Year Member

joined:Feb 9, 2005
votes: 0

Just wanted to is it a good idea to put nbsp; in H1? Which is better
<h1>New York</h1> or <h1>New&nbsp;York</h1> according to search engine will it really effect the ranking?
1:57 pm on Sept 12, 2007 (gmt 0)

New User

5+ Year Member

joined:Sept 6, 2007
votes: 0

Why would you choose to even use an nbsp;?
2:47 pm on Sept 12, 2007 (gmt 0)

Junior Member

5+ Year Member

joined:July 26, 2006
votes: 0

I don't think it would affect ranking. Try throwing both through the W3C's validator tool and let us know what happens.
2:53 pm on Sept 12, 2007 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member pageoneresults is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Apr 27, 2001
posts: 12169
votes: 55

No need to. It's a character entity and represents a non-breaking space. There would be no need to have that there in most instances but...

If there are two asp variables back to back, a nbsp; is required to "add the space".

I've seen people misuse it in a scenario to prevent wrapping of two words on one line. I believe using nowrap via CSS is the best method.

This entity is also generated frequenly by WYSIWYG Editors and I see it come into place when you have more than one space back to back. Some designers use it to force space, yikes!