前端之家收集整理的这篇文章主要介绍了
html – 链接上是否需要href?,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
Is href required on links?@H_301_4@
是.没有href属性的锚点不是链接.@H_301_4@
I’m asking this because I have some links that act like buttons that pull out content trough ajax@H_301_4@
如果你这样做,那就做对了.使用Unobtrusive JavaScript和pushState.@H_301_4@
仅在使用指点设备并且启用了JS时才有效的“链接”不是很好的链接.@H_301_4@
I’m asking this from the SEO perspective@H_301_4@
搜索引擎不会执行你的JavaScript,所以伪链接(依赖于JS)只是他们所关心的虚无黑洞.@H_301_4@
原文链接:https://www.f2er.com/html/231823.html