什么是“href”代表? [英] What does "href" stand for?

查看:166
本文介绍了什么是“href”代表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在写了几年的html后,我意识到我不知道为什么 href 属性被命名为href

HTML Recomendation 并没有说明这个问题:


这个属性指定了Web资源的位置,因此定义当前元素(源锚点)和由该属性定义的目标锚点之间的链接。

此外, HTML 4.01 DTD 并没有提供很多线索。


href%URI; #IMPLIED - 链接资源的URI -


我可以对意义进行有根据的猜测,但我希望得到一些规范。

解决方案

它代表超文本参考



由Tim Berners-Lee亲自撰写。:


帮助就是显示的全部内容,有些表示它是
选项。如果用户选择(点击一个鼠标,根据他拥有的客户端选择
编号),然后客户端请求服务器
/ HEPDATA / HELP。 (A表示锚点,HREF表示超文本
引用)



After writing html for couple of years I realized that I don't really know why the href attribute is named "href" .

The HTML Recomendation does not shed light on the subject by saying :

This attribute specifies the location of a Web resource, thus defining a link between the current element (the source anchor) and the destination anchor defined by this attribute.

Also the HTML 4.01 DTD does not provide a lot of clue .

href %URI; #IMPLIED -- URI for linked resource --

I could make an educated guess for the meaning , but i was hoping for something canonical .

解决方案

It stands for Hypertext Reference

From the source written by Tim Berners-Lee himself.:

"Help" is all that is displayed, with some indication that it is an option. If the user choses (clicks a mouse on, choses by number depending on which client he has) then the client asks the server for /HEPDATA/HELP. ("A" is for "anchor", "HREF" is for "hypertext reference")

这篇关于什么是“href”代表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆