带有引用文本的 href 的 HTML 链接? [英] HTML link with href that refers to text?
本文介绍了带有引用文本的 href 的 HTML 链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是一个简单的是或否问题(可能不是),谷歌搜索似乎没有给我一个直接的答案.假设您有一个链接是
This is a simple yes or no question (probably no), googling didn't seem to give me a straight answer. Say you have a link that is
<a href="www.stackoverflow.com">www.stackoverflow.com</a>
是否可以制作类似的东西
Is it possible to make something like
<a href=self.text>www.stackoverflow.com</a>
不使用其他任何东西(显然,没有脚本)?有什么捷径吗?
without using anything else (obviously, no scripts)? Is there any kind of shortcut?
推荐答案
不,您需要在 A 标记之间同时具有 href 属性和值.不使用任何脚本就不可能引用它自己的内容.
No you need to have both the href attribute and a value between the A tags. Without using any scripts its not possible to refer to its own contents.
这篇关于带有引用文本的 href 的 HTML 链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文