Replacing H1 text with a logo image: best method for SEO and accessibility?

前端 未结 15 2198
渐次进展
渐次进展 2020-11-28 00:16

It seems like there are a few different techniques out there, so I was hoping to get a \"definitive\" answer on this...

On a website, it\'s common practice to create

15条回答
  •  -上瘾入骨i
    2020-11-28 00:52

    Stack OverflowStack Overflow

    This was the good option for SEO because SEO gives the H1 tag high priority, inside the h1 tag should be your site name. Using this method if you search the site name in SEO it will show your site logo as well.

    you want to hide the site name OR text please use text-indent in negative value. ex

    h1 a {
     text-indent: -99999px;
    }
    

提交回复
热议问题