简体   繁体   English

属性“linktext”的目的是什么?

[英]what is the purpose of the attribute “linktext”?

I am testing a website, and I see this attribute in the HTML -> linktext What is the purpose of it?我正在测试一个网站,我在HTML -> linktext中看到这个属性,它的用途是什么? (I have searched google and found nothing relevant) (我搜索了谷歌并没有发现任何相关内容)

<a href="https://www.sugat.com/about/" linktext="about sugat" class="m-secondary__link">about sugat</a>

It has no purpose in HTML.它在 HTML 中没有任何用途。 It is not an attribute that is allowed on that (or any other) HTML element.它不是该(或任何其他)HTML 元素上允许的属性。

The site might be using it in association with some custom JavaScript and should be using a data- attribute instead, but that is speculation.该站点可能将它与某些自定义 JavaScript 关联使用,并且应该使用data-属性,但这是猜测。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM