Html “href”代表什么?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/20172280/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-28 22:13:18  来源:igfitidea点击:

What does "href" stand for?

htmlw3cweb-standards

提问by Alexander

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

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

The HTML Recomendationdoes not shed light on the subject by saying :

HTML Recomendation不说关于这个问题的揭示:

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.

此属性指定 Web 资源的位置,从而定义当前元素(源锚点)和此属性定义的目标锚点之间的链接。

Also the HTML 4.01 DTDdoes not provide a lot of clue .

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

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

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

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

我可以对含义做出有根据的猜测,但我希望得到一些规范的东西。

回答by Rahul Tripathi

It stands for Hypertext Reference

它代表超文本参考

From the sourcewritten by Tim Berners-Lee himself.:

来自蒂姆·伯纳斯-李 (Tim Berners-Lee) 本人撰写的来源

"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")

“帮助”就是显示的全部内容,并有一些迹象表明它是一个选项。如果用户选择(单击鼠标,根据他拥有的客户端按编号选择),则客户端会向服务器询问 /HEPDATA/HELP。(“A”代表“锚点”,“HREF”代表“超文本引用”

回答by Dan Goodspeed

Hypertext REFerence. You can see the link here for more about it -

超文本参考。您可以在此处查看链接以了解更多信息 -

http://www.pcmag.com/encyclopedia/term/44472/href

http://www.pcmag.com/encyclopedia/term/44472/href

回答by FaddishWorm

Hypertext Reference, From a day where links used to be called "hyperlinks" hypertext is simply link to another big of information, and hypertext reference is the link itself:

超文本参考,从以前链接被称为“超链接”的那一天起,超文本只是简单地链接到另一大信息,而超文本参考就是链接本身:

http://en.wikipedia.org/wiki/Hypertext

http://en.wikipedia.org/wiki/Hypertext

回答by Chetan Prajapati

Its stand for Hypertext Reference .

它代表超文本参考。

The href attribute specifies the URL of the page the link goes to.

href 属性指定链接指向的页面的 URL。

If the href attribute is not present, the tag is not a hyperlink.

如果 href 属性不存在,则标记不是超链接。

回答by Raj Subit

href stands for Hypertext REFerence. It is the attribute of the html which gives the URL of the page the link goes to ....

href 代表超文本参考。它是 html 的属性,它给出了链接指向的页面的 URL ....

Further information can be obtained from

更多信息可从

http://www.w3.org/MarkUp/draft-ietf-iiir-html-01.txt- By Tim Berners Lee http://www.w3schools.com/tags/att_a_href.asp
http://tomayko.com/writings/wtf-is-an-href-anyway

http://www.w3.org/MarkUp/draft-ietf-iiir-html-01.txt- Tim Berners Lee http://www.w3schools.com/tags/att_a_href.asp
http://tomayko.com /writings/wtf-is-an-href-反正