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

what is the best way to write long seo-friendly titles in sidebars?

<h3 title="My long title, the very seo one">Menu</h3>
<h3>My long title, the very seo one</h3> // hidden via css
<div class="title">Menu</div>

what else? thanks!

share|improve this question
up vote 3 down vote accepted

FYI, if you're hiding that <h3> via CSS in a live site that's called cloaking and will get you banned if you get caught by the search engines doing that.

Your first example is the proper way to do it as that is what the title attribute is for. It allows you to provide extra text that gives the user more information about an element. Usually it is used with links but it does apply to headings as well.

share|improve this answer
thanks! what about <h3 style="text-overflow:ellipsis">long seo title</h3> ? – skyline26 Apr 12 '12 at 14:27
That's perfectly fine although it may awkward for users – John Conde Apr 12 '12 at 14:34
i will show the full title on mouseover! thanks ;) – skyline26 Apr 12 '12 at 15:28

For your SEO, that is not really important (it was in 2001, but that is some time ago).

For your users however, both isn't the best solution. "Menu" or any other generic one-word does not tell the user anything about the content of the section.

Use something like Short title that gives the user a clue about the sections contents and displays more info onmouseover.

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.