SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    SitePoint Member
    Join Date
    Aug 2006
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cannot get links to validate

    I am getting errors on my links and I don't understand why. I do not understand the error messages. Also, the images for these links will not show in firefox. Can somebody please help me with this.

    Thanks,
    Steve

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>3colcss home</title>
    <link rel="stylesheet" type="text/css" media="screen" href="3colcss.css" />
    </head>
    <body>
    <div id="outer">
    <div id="header"><h1 > Golf Swing Helper</h1>
    <p>Your #1 Golf Connection!</p>
    <a href="#"> home</a>
    <a href="#"> login</a>
    <a href="#"> Golf Equipment</a>
    <a href="#"> Golf Courses</a>
    <a href="#"> Training Aids</a>
    <a href="#"> Golf News</a>





    </div>
    <div id="left"><img src="C:\My Documents\simpleswing\12.jpg" alt="Simple Swing Ad" /><br />
    <a href=http://data7122.bizonline.hop.clickbank.net
    target=_top>The Simple Golf swing<br /> Click Here!</a><br />

    <img src="C:\My Documents\golfads\smallebook%20copy.jpg" alt="Lowerscore Ad" /> <br />
    <a href=http://hop.clickbank.net/?data7122/lowerscore target=_top>
    Lowerscore Click Here!</a></div>

    <div id="right"><img src="C:\My Documents\golfads\golfoption.jpg" alt="golf options ad" /><br />
    <a href= http://www.golfinstructionsite.com/e...7122&amp;pid=1
    target=_top>Golf Options Click Here! <a/><br />

    <img src="C:\My Documents\golfads\shootinthe70.jpg" alt=" Shoot In The 70's Ad" /><br />
    <a href=http://hop.clickbank.net/hop.cgi?data7122/golfscore
    >How To Shoot In The 70's<br /> Click Here!</a></div>

    <div id="centrecontent">

    <p>Are You struggling with your golf swing?<br />
    Could your game use some improvements?<br />
    Tired of losing to your golf buddies?<br />
    <br />
    I believe we all could answer YES to these questions.<br />
    This is why we started the Golf Swing Helper website.<br />
    We strive to bring you the best tools to improve your<br />
    Golf swing and your game.<br />
    <br />
    There are thousands of golf training aids out there.<br />
    Some are great, some good and some are not so good.<br />
    Here at Golf Swing Helper, we sift through all the hype<br />
    All the flash and all of the B.S. for you.<br />
    <br />
    This is why we offer only the best of the best.<br />
    These are programs that are proven to improve your game.<br />
    Many come with a money back guarantee's!</p>
    </div>


    <div id="clearfooter"></div><!-- to clear footer -->
    </div><!-- end outer div -->
    <div id="footer"> -Footer -</div>














    </body>
    </html>

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You must surround the link URIs with quotation marks, since they contain non-alphanumeric characters.
    I'd recommend always using quotation marks around all attribute values, even though HTML allows you to omit them under certain circumstances.

    Since you don't specify what the error message is, it's hard to be more helpful.

    (Also, please use the &#91;html&#93;...&#91;/html&#93; tags and/or the &#91;code&#93;...&#91;/code&#93; tags to make sample code easier to read.)
    Birnam wood is come to Dunsinane

  3. #3
    SitePoint Member
    Join Date
    Aug 2006
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Tommy,
    Putting the quotes there did the trick. I had to fix a few more small errors, but it is valid now. I am new to these stuff, so it takes me awhile to catch on sometimes.
    I still can't get the images to show in firefox, any suggestions?

    Steve

  4. #4
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You have space characters in your image URLs. Try encoding them as %20. The Windows-style backslashes should be forward slashes, and you really should include the file: protocol:
    HTML Code:
    <img src="file://C:/My%20Documents/golfads/golfoption.jpg" alt=""/>
    Birnam wood is come to Dunsinane

  5. #5
    SitePoint Member
    Join Date
    Aug 2006
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    please enter the target files with double quotes in the anchor text

  6. #6
    SitePoint Member
    Join Date
    Aug 2006
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank's "file://c:/again%20Tommy"
    That did the trick. If I have to put one more sticky note on my screen,
    I won't be able to see anything!

    Thank's,
    Steve

  7. #7
    SitePoint Member
    Join Date
    Aug 2006
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Guinni,
    I'm not sure what you are talking about. Can you please give me an example.
    Because now the images will not show in I.E.

    Thanks,
    Steve

  8. #8
    SitePoint Wizard silver trophybronze trophy Nadia P's Avatar
    Join Date
    Oct 2004
    Location
    NSW Australia
    Posts
    3,564
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If your image links are like this:

    <img src="C:\My Documents\golfads\smallebook%20copy.jpg" alt="Lowerscore Ad" />
    then you won't be able to see them when you upload your page... they are pointing to your harddrive C:\

    and yes, don't get into the habit of having spaces in your filenames.

    Nadia

  9. #9
    SitePoint Member
    Join Date
    Aug 2006
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the tip Nadia. I have not loaded the pages into the serve yet. I want to finish everything first. This is my first website, so I am trying to take this one problem
    at a time. But thanks again for the tip. (well here goes another sticky note)
    Look for me in the CSS room. I'm sure I will be spending a lot of time there too!

    Thank's,
    Steve

  10. #10
    Guru Meditation Error gnarly's Avatar
    Join Date
    Dec 2003
    Location
    Cheltenham, United Kingdom
    Posts
    692
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Steve,

    You're better off using a relative path to your images, for example "golfads/smallebook%20copy.jpg" (which points to <location of html page>/golfads/smallebook%20copy.jpg). That way you won't have to rewrite all of your links when you come to upload the site to a server.
    Olly Hodgson
    thinkdrastic.net


Bookmarks

Posting Permissions

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