Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Dec 2003
    Location
    texas
    Posts
    96
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Very Simple HTML question

    I have a question about links...and how come mine are not working.

    Basically what I am doing is making a table.

    Code:
    </table>
    <table width="100%" align="center">
    <tr>
    <td><a href="#">HOME</a></td>
    
    <td><a href="\why_Title.htm">Why Title Insurance</a></td>
    
    <td><a href="#">Real Estate Dictionary</a></td>
    <td><a href="#">Mortgage Calculator</a></td>
    <td><a href="#">Premiums</a></td>
    <td><a href="#">Meet the Staff</a></td>
    <td><a href="#">Contact Us</a></td>
    </tr></table>
    The items that are currenltly in bold is my table. I am having trouble with the second row...Why Title Insurance? Well the way I have this link set up it takes me to a page that it says it not there. I want it to basically take over the page for now. Is there something that I am missing on this page? I know it is simple but I don't know what I am doing wrong. Any help is greatly appreciated.
    thanks
    bri

  • #2
    Senior Coder koyama's Avatar
    Join Date
    Dec 2006
    Location
    Copenhagen, Denmark
    Posts
    1,246
    Thanks
    1
    Thanked 5 Times in 5 Posts
    Quote Originally Posted by briintex1 View Post
    I am having trouble with the second row...Why Title Insurance? Well the way I have this link set up it takes me to a page that it says it not there. I want it to basically take over the page for now. Is there something that I am missing on this page?
    Well it depends on where why_Title.htm is located.

    This may be working if it is in the same directory:
    Code:
    <a href="why_Title.htm">Why Title Insurance</a>
    This may be working if it is in the web root:
    Code:
    <a href="/why_Title.htm">Why Title Insurance</a>
    This always works:
    Code:
    <a href="http://www.somedomian.com/somedir/why_Title.htm">Why Title Insurance</a>

  • #3
    New Coder sdcomputerz's Avatar
    Join Date
    Feb 2007
    Location
    Hawaii
    Posts
    62
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Is there a reason you have a backslash instead of a forward slash?
    You can never have nothing, because nothing is still something.
    SD Computerz
    Free Domain Names
    Gaming Lagoon - Buying your game time!

  • #4
    New Coder
    Join Date
    Dec 2003
    Location
    texas
    Posts
    96
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Okay thanks

    That was it...I needed to switch my slashes. I am going to look at the other suggestions. Thanks for the help ya'll.
    thanks
    bri

  • #5
    Regular Coder kosstr12's Avatar
    Join Date
    Apr 2007
    Location
    Woodstock, Georgia
    Posts
    428
    Thanks
    7
    Thanked 5 Times in 5 Posts
    Well, if you are linking to positions on the same page, then you need to declare what parts of the page you are linking to like this:
    Code:
    <html>
    <head>
    <title>Welcome to my page</title>
    </head>
    <body>
    <a href="#hello">Hello link text</a>
    <a href="#goodbye">goodbye link text</a>
     <a name="hello">
    <p>Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello Hello.</p></a>
    <br>
    <br>
    <br>
    <br>
     <a name="goodbye">
    <p>Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye Goodbye.</p></a>
    </body>
    </html>

  • #6
    Senior Coder whizard's Avatar
    Join Date
    Jan 2005
    Location
    Philadelphia, PA, USA
    Posts
    1,662
    Thanks
    14
    Thanked 76 Times in 76 Posts
    I don't think he is linking to different sections of his site... He's using # as a NULL link until he makes the page that the link points to.

    Also, in XHTML, the 'name' attribute was replaced with the 'id' attribute, although in HTML 4.01 you should still use 'name'.

    Dan
    PHP Tip: If you want to use short tags (<? or <?=$var) then make sure short_open_tag is set to "1". It really helps.

    Don't forget to save everyone time and mark your thread as Resolved :)

    "Also note that it is your responsibility to die() if necessary."

    DON'T USE THE MYSQL_ EXTENSION


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •