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
https://forums.phpfreaks.com/topic/238891-validation-errors/
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
https://forums.phpfreaks.com/topic/238891-validation-errors/#findComment-1227499
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.