1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

<a href> tag

Discussion in 'Software Development' started by prasannakarthikl, Oct 6, 2008.

Thread Status:
Not open for further replies.
  1. prasannakarthikl

    prasannakarthikl Thread Starter

    Joined:
    Oct 3, 2008
    Messages:
    19
    Why the href tag is not working, if http is not used? Is it mandatory,if so why?
     
  2. mt2002

    mt2002

    Joined:
    Sep 14, 2005
    Messages:
    919
    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.
     
  3. JimmySeal

    JimmySeal

    Joined:
    Sep 25, 2007
    Messages:
    290
    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">
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/756520

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice