解释如何只使用“/”指向新网页的href?

时间:2017-03-25 00:51:59

标签: python html tags href

我从源页面获取此html代码,当我点击下面的链接时,它会将我带到新的网页。我知道您需要有一个正确的整页链接(“www.example.com”)从一个页面移动到另一个页面。

<a href="/go/Internship/2432300/" title="Internship">Internship</a>

有人能解释我发生了什么以及它是如何运作的吗?

1 个答案:

答案 0 :(得分:0)

这是一条相对路径。

相对路径

index.html
/graphics/image.png
/help/articles/how-do-i-set-up-a-webpage.html

绝对路径

http://www.example.com
http://www.example.com/graphics/image.png
http://www.example.com/help/articles/how-do-i-set-up-a-webpage.html

http://www.coffeecup.com/help/articles/absolute-vs-relative-pathslinks/