且构网

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

seo - 图像和和h1

更新时间:2023-09-03 10:40:55

SEO***是投机。



通常接受的惯例是在适当的地方使用,你不会受苦。例如,你的代码我会这样写:

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

实际使用文字而不是标志的好处并不多。 / p>

注意:alt + title应该是描述,因此不要在其中加入一堆关键字,否则您会受到SEO的影响。


I can't seem to wrap my head around this.

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.