I
I
Ilgiz Khuzhakhmetov2017-03-23 18:07:56
HTML
Ilgiz Khuzhakhmetov, 2017-03-23 18:07:56

Replacing link tag A with SPAN, pros and cons?

on some site I came across links made through SPAN, does this somehow affect SEO?
I would like to know the opinion of connoisseurs about the pros and cons of this technique . I
found instructions on the net how to replace A with SPAN, maybe someone will come in handy

<h1>Замена тега ссылок А на SPAN</h1>
<br>
<p><span onclick="InWin('http://ссылка.ru/')">Это ссылка</span>

span:visited{ text-decoration:none; color:#293d6b; }
  span:hover{ text-decoration:underline; color:#293d6b; }
  span {color:#293d6b; cursor: pointer; }

<script type="text/javascript">
function InWin(a){
if (a.href) a=a.href;
jtop=window.open(a,'Пример',
  'height=768,width=1024,location=no,toolbar=no,directories=no,menubar=no,status=yes,scrollbars=1,resizable=yes');
jtop.focus();
jtop.name='example';
return false;
}
</script>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Egor Zhivagin, 2017-03-23
@Krasnodar_etc

Yes, the code is extremely simple, but ... why the hell? So you can make a div a link, and whatever. But why force the client to load a script for this?
And if a person disables JS in the browser settings?) A very strange (read, unnecessary) hook

A
Ali Profi, 2021-07-18
@aliprofi

This is done in order to hide affiliate links from search engines and people, many people use it, and so do I.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question