SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Member
    Join Date
    Nov 2009
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    HTML validation error

    I'm new to web design - trying to st up my own site.

    Using W3C Link Checker, I'm getting the following error message:

    Code Occurrences What to do
    403 1 The link is forbidden! This needs fixing. Usual suspects: a missing index.html or Overview.html, or a missing ACL.

    What do I do about it?

  2. #2
    SitePoint Wizard bronze trophy Black Max's Avatar
    Join Date
    Apr 2007
    Posts
    4,029
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    We'd have to either see the site or the code containing the broken link.

  3. #3
    SitePoint Member
    Join Date
    Nov 2009
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Error 403?? What on earth are you trying to link to?? Need to see the HTML code.. and the href of the page your trying to link to...your server is simply saying "No way are we going to allow this". Are you trying to link to a directory or something?

    Regards
    Kaz

  4. #4
    SitePoint Member
    Join Date
    Nov 2009
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Below is the markup for the home page I'm trying to set up. It validates when I run it through the W3C checker straight from my computer. I'm thinking it may have something to do with the way I'm downloading it onto the web host server.

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>JEJ Photograpy - Imaging the Light</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="My Website style1.css" rel="stylesheet" type="text/css" />
    </head>
    <body>

    <div id="header">
    <div id="sitebranding" class="highlight">
    <h1>ImagingTheLight.Com</h1>
    </div>
    <div id="tagline">
    <p>Golden hour and beyond - capturing digital art.</p>
    </div>
    </div> <!-- end of header div -->

    <div id="navigation">
    <ul>
    <li><a href="Index.html">Home</a></li>
    <li><a href="About.html">About JEJ Photo</a></li>
    <li><a href="Contact.html">Contact Info</a></li>
    <li><a href="Gallery.html">Image Gallery</a></li>
    </ul>
    </div> <!-- end of navigation div -->

    <div id="bodycontent">
    <h2>Welcome to my online gallery.</h2>
    <p><img src="dementia.jpg" width="600" height="450" alt="A Dementian of Light?"/><img src="LSUpan.jpg" width="900" height="450" alt="LSU Athletics"/></p>
    <p>Glad you could drop in to view what I've seized from the ever changing world around us.</p>
    </div> <!-- end of bodycontent div -->

    </body>
    </html>

  5. #5
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I don't see any validation issues with the page.

    Though what is this?
    Code HTML4Strict:
    <link href="My Website style1.css" rel="stylesheet" type="text/css" />
    did you change that just for posting it here? Instead of the actual domain you just entered "My Website"? If so ignore this.

  6. #6
    SitePoint Member
    Join Date
    Nov 2009
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is that the actual link?
    <link href="My Website style1.css" rel="stylesheet" type="text/css" />

    If it is... Remove the spaces and capitilisation from the href so that it reads:

    <link href="mywebsitestyle1.css" rel="stylesheet" type="text/css" />

    If this is the actual link and not just for the sake of posting it here, then it could be that your host server does not allow for that many spaces.

    Take those spaces out.
    Also how many pages does your site have..try to use the same CSS style sheet throughout, I use dreamweaver it makes it very easy to do this.

    And for this: <li><a href="Index.html">Home</a></li>

    Remove the captilisation for Index so that it reads:
    <li><a href="index.html">Home</a></li>

    Are you getting any 401 server Errors?

    I need to see the CSS stylesheet Syntax to have a clearer picture.

    I have a slight issue with this:
    <div id="navigation"> and this: <div id="bodycontent">

    It seems you have 2 different names for the same rule?





  7. #7
    Follow: @AlexDawsonUK silver trophybronze trophy AlexDawson's Avatar
    Join Date
    Feb 2009
    Location
    England, UK
    Posts
    8,111
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    To be honest, I don't agree with using the W3C link checker, it's pretty temperamental, if you want to check that all the paths are correct in your files...

    http://home.snafu.de/tilman/xenulink.html

    It's free, offers more detailed information and will run faster (usually).

  8. #8
    SitePoint Member
    Join Date
    Dec 2009
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you have first capital letter in your link Index.html i think it should be in small letter


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
  •