Jump to content

Validation Errors


OAFC_Rob

Recommended Posts

Hey,

 

I've been working on a new site and just quickly validated it with the W3C Validator an i'm getting errors like this;

 

Line 16, Column 45: character "<" is the first character of a delimiter but occurred as data

 

…      <link rel="shortcut icon" href="<?php $_SERVER["DOCUMENT_ROOT"] ?>/innov…

 

 

This message may appear in several cases:

 

    You tried to include the "<" character in your page: you should escape it as "<"

    You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&", which is always safe.

    Another possibility is that you forgot to close quotes in a previous tag.

 

 

Any reasons why??

 

I'm going to have a break from work, have some food and it might come to me, but any help in the mean time would be greatly apprecaited.

Link to comment
Share on other sites

The error message is an HTML error NOT a PHP error (moved topic to appropriate thread). You need to check line 16 of the HTML source that is generated from the PHP code. Of course, if you are simply dumping your PHP code into a validator or pointing the validator to your page which is hosted on a server that is not parsing the PHP code, then that would explain your problem as well. An HTML validator does not expect PHP code.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.