Using

Code:

<!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" xmlns:v="urn:schemas-microsoft-com:vml">


This line of my PHP code will not validate:

Code:

<td><a href="<?php echo $url; ?>" rel="external"><?php echo $hostname; ?></a></td>

I get the following errors, although the code works just fine:

Line 109, Column 20: XML Parsing Error: Unescaped ‘<’ not allowed in attributes values.

Line 109, Column 20: XML Parsing Error: attributes construct error.

Line 109, Column 20: XML Parsing Error: Couldn’t find end of Start Tag a line 109.

Line 109, Column > 80: XML Parsing Error: Opening and ending tag mismatch: td line 109 and a.

Line 109, Column > 80: XML Parsing Error: Opening and ending tag mismatch: tr line 108 and td.

Line 121, Column 11: XML Parsing Error: Opening and ending tag mismatch: table line 68 and tr.

Line 126, Column 10: XML Parsing Error: Opening and ending tag mismatch: div line 43 and table.

Line 228, Column 6: XML Parsing Error: Opening and ending tag mismatch: body line 28 and div.

Line 295, Column 7: XML Parsing Error: Opening and ending tag mismatch: html line 2 and body.

The page where the code resides is http://www.webhosting-depot.com/compare-hosts.php