Tech Support Guy banner

<a href> tag

1296 Views 2 Replies 3 Participants Last post by  JimmySeal
Why the href tag is not working, if http is not used? Is it mandatory,if so why?
Status
Not open for further replies.
1 - 3 of 3 Posts
Its mandatory, The reason is because there are different types of protocols that can be used (http, ftp, et al...) so you need to specify the type of protocol.
The protocol need not be specified in relative links (links to locations on the same server).
So if a page located at
http://www.mywebpage.com/files/hello.html
had a tag
<a href="morefiles/yay.html">

this would be essentially the same thing as
<a href="http://www.mywebpage.com/files/morefiles/yay.html">
1 - 3 of 3 Posts
Status
Not open for further replies.
Top