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)

10+ Year Member

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 Sep 12, 2007 (gmt 0)

5+ Year Member

Why would you choose to even use an nbsp;?


2:47 pm on Sep 12, 2007 (gmt 0)

5+ Year Member

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 Sep 12, 2007 (gmt 0)

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

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!


Featured Threads

Hot Threads This Week

Hot Threads This Month