A
A
Alibek Kulseitov2018-01-30 15:48:10
css
Alibek Kulseitov, 2018-01-30 15:48:10

Logo img or logo as background?

How relevant is this article? https://csswizardry.com/2010/10/your-logo-is-an-im... The
issue is the correct semantics for search engines. Logo to use as or
<a href="#"><img src='logo.png"></a>

<a href="#" class="logo" title="logo">Название компании</a>

.logo {
        display: block;
        width: 187px;
        height: 62px;
        outline: none;
        text-indent: -9000px;
        background: url('../img/logo.png') no-repeat;
}

Answer the question

In order to leave comments, you need to log in

7 answer(s)
#
#rybak, 2018-01-30
@AlibekKulseitov

It seems to me that img is better - when viewed from the side of SEO .
On the layout side , each of the options has a small feature, a short one can be decisive in its particular case.
(for example, a user cannot "Save As..." a background image by right-clicking the mouse... etc.)
Another argument in favor of img:
In popular CMS (wordpress, joomla. opencart), by default, the logo is displayed as an img tag . I think CMS developers understand something about this.
Personally, I always use img.

K
Konstantin Teploukhov, 2018-01-30
@blood-moon

I don't think it affects anything at all. But it's obviously easier this way. So I'm doing just that.

A
Anton Filippov, 2018-01-30
@vicodin

first option

S
Sergey Sviridonov, 2018-01-30
@HTMLord

How convenient - so do it.

N
Nikita Kit, 2018-01-30
@ShadowOfCasper

It really depends on the format of the logo. If svg - then include it directly in the markup - no img. And on a raster it is better to use picture with srcset. I read that Google loves when pictures are customized for different screen formats, such as if the retina is a desktop - load a larger resolution - mobile phones - a smaller one. Well, this is more of a general optimization plan, not that SEO.

P
palec2009, 2018-01-30
@palec2009

For search engines, this format is better than
a href="#" class="logo" title="logo">Company name
Only in place # - link to the main page and close it with the rel="nofollow" tag so that the robot does not follow it
Why so better, because with such a record, you can write the Alt and titlte tags for the link. unlike prescribing an image in css

F
Froggyweb, 2018-01-30
@Froggyweb

SHOBA are wrong. The first one is better, but there is no alt where the name of the company is indicated, and not some kind of logo. Title I would indicate the normal type of the main page.
The logo, by the way, is much more important than the pioneering cliparts, which are sort of like illustrations.
By the way, a good way to skip the page through the reader. If everything is clear, then the page is good. If the bot speaks like a bot, then everything is not very good.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question