Links working in IE but not Firefox

Discussion in 'HTML & Website Design' started by Nato76, Nov 3, 2006.

  1. #1
    I use Hostgator and just create a file using File Magager in the cpanel. I used the WYSIWYG editor to make a link and it is working fine with IE but when you use firefox all it shows is the HTML code. I am a total newbie and just want to make links on a page where people can click. Here is the code:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title></title>
    </head>
    <body>
    <p align="center"><font size="7"><a href="http://secure.hostgator.com/cgi-bin/affiliates/clickthru.cgi?id=chingo">Hostgator</a></font></p>
    </body>
    </html>
     
    Nato76, Nov 3, 2006 IP
  2. YIAM

    YIAM Notable Member

    Messages:
    2,480
    Likes Received:
    240
    Best Answers:
    0
    Trophy Points:
    280
    #2
    Nothing is wrong.
    Try it: start <a> tag in new line I mean:
    
    <a href="http://secure.hostgator.com/cgi-bin/affiliates/clickthru.cgi?id=chingo">Hostgator</a>
    
    Code (markup):
    see what happens.
     
    YIAM, Nov 3, 2006 IP
  3. Nato76

    Nato76 Peon

    Messages:
    138
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Started it on a new line and still having the same issue. In Firefox it just shows the HTML code.
     
    Nato76, Nov 3, 2006 IP
  4. Silver89

    Silver89 Notable Member

    Messages:
    2,243
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    205
    #4
    Thats very odd, do you have the page hosted online where the problem is occuring?
     
    Silver89, Nov 3, 2006 IP
  5. YIAM

    YIAM Notable Member

    Messages:
    2,480
    Likes Received:
    240
    Best Answers:
    0
    Trophy Points:
    280
    #5
    Make sure that you have save it with corect extension name. I mean htm/html/asp/php etc.
     
    YIAM, Nov 3, 2006 IP
  6. Nato76

    Nato76 Peon

    Messages:
    138
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    The file name is hostgator. I changed it to hostgator.html and it now works with both. Only problem is my link looks like this mydomain.com/hostgator.html and I want it to just be mydomain.com/hostgator.
    Am I stuck with it showing as .html?
     
    Nato76, Nov 3, 2006 IP
  7. Silver89

    Silver89 Notable Member

    Messages:
    2,243
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    205
    #7
    yes unless you use mod rewrite
     
    Silver89, Nov 3, 2006 IP
  8. DatR

    DatR Peon

    Messages:
    210
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #8
    you can make hostgator a directory and put the file as index.html in that directory then when you type mydomain.com/hostgator it will look for that directory and load the default index.html file
     
    DatR, Nov 3, 2006 IP
  9. Nato76

    Nato76 Peon

    Messages:
    138
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    This worked perfectly. Thank you and everyone else very much.
     
    Nato76, Nov 3, 2006 IP