且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

seo - 图像和 h1

更新时间:2023-09-03 11:02:58

SEO 充其量只是投机性的.

通常接受的约定是在适当的地方使用,您不会受到影响.例如,你的代码我会写这样的:


实际使用文本而不是徽标的好处不会太多.

注意:alt + title 应该是描述性的,所以不要只是在里面塞一堆关键字,否则你会受到 SEO 明智的影响.

I have a situation where I'd like to stick to using my logo instead of the actual text for my h1 tags. if I put in my keywords in the alt tag, instead of actually written, will I suffer in SEO. Is it better to have both text and an image? Thoughts?

<div id="hdr-top-logo">
 <h1>                   
  <a href="/">
   <img src="logo.jpg" alt="keywords and title" />
  </a>
 </h1>
</div>

SEO is speculative at best.

Generally the accepted convention is to use where appropriate and you won't suffer. For example, your code I would write something like this:

<div id="hdr-top-logo">
 <h1>                   
  <a href="/" title="Blahblah.com logo">
   <img src="logo.jpg" alt="Blahblah logo" />
  </a>
 </h1>
</div>

The benefits of actually having the text instead of the logo won't be much, if anything.

Note: alt + title should be descriptive, so don't just stuff a bunch of keywords in there, otherwise you will suffer SEO wise.