MarcDK
Banned
- Registriert
- Mai 2001
- Beiträge
- 3.559
Code:
<?xml version="1.0" encoding="iso-8859-1" ?>
<!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" xml:lang="en" lang="en">
<head>
<link rel="stylesheet" href="style.css" type="text/css" />
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>pixer gallery</title>
</head>
<body>
<h1><a href="index.php"></a></h1>
<div id="gallery">
<a href="?path=">Gallery</a>
/<a href="?path=rock">rock</a>
/<br /><a href="index.php?path=rock&img=img_0007.JPG">< < (previous)</a> img_0008 (9/121) <a href="index.php?path=rock&img=img_0009.JPG">(next) > ></a><br /><a href="index.php?path=rock&img=img_0009.JPG"><img src="rock/img_0008.JPG" alt="img_0008.JPG - large - click to jump to the next picture!" /><br /><a href="index.php?path=rock&img=img_0007.JPG">< < (previous)</a> img_0008 (9/121) <a href="index.php?path=rock&img=img_0009.JPG">(next) > ></a><br /></a><form method="post" action="">Kommentare:<br /><input type="hidden" name="path" value="rock" /><input type="hidden" name="img" value="img_0008.JPG" /><input type="hidden" name="text" value="" /><input type="text" size="60" name="addcomment" /><input type="submit" value="add" /></form><table><tr><td></td></tr></table></div><div id="bottom">copyright © 2003 <a href="http://www.toensing.com">www.toensing.com</a></div>
</body></html>
Hi! Er meckert beim validieren und zwar so:
Line 15, column 401: document type does not allow element "a" here; missing one of "object", "span", "bdo", "applet", "iframe", "tt", "i", "b", "u", "s", "strike", "big", "small", "font", "em", "strong", "dfn", "code", "q", "samp", "kbd", "var", "cite", "abbr", "acronym", "sub", "sup", "label", "ins", "del" start-tag
...x.php?path=rock&img=img_0007.JPG">< < (previous)</a> img
Also das ist ja im prinzip im <a>-Tag die "href"-value die er anmeckert weil da so viele Variablen übergeben werden und das mag XHTML wohl nicht.
Wie kann man das umgehen?