Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [HTML]Walidator xhtml - problem
Forum PHP.pl > Forum > Przedszkole
robos85
MAM taki kod:
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
  3. <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  4. <meta name="Description" content="" />
  5. <meta name="Keywords" content="" />
  6. <meta name="Author" content="Robert Węglarek" />
  7. <title>Panel admina</title>
  8. <link rel="stylesheet" href="styl.css" type="text/css" />
  9. </head>
  10.  
  11.  
  12. <div id="kontener">
  13. <div id="top">
  14. </div>
  15. <div id="main">
  16. <div id="menu">
  17. <a href="index.php?a=1">Zarz. kategoriami</a><br />
  18. <a href="index.php?a=2">Zarz. obrazkami</a>
  19.  
  20. </div>
  21. <div id="srodek"><a href="index.php?a=1&kid=3&kol=2">dół</a> | <a href="index.php?a=1&kid=3">trzecia - (0)u</a><br /><a href="index.php?a=1&kid=1&kol=1">góra</a> <a href="index.php?a=1&kid=1&kol=2">dół</a> | <a href="index.php?a=1&kid=1">pierwsza - (2)</a><br /><a href="index.php?a=1&kid=2&kol=1">góra</a> | <a href="index.php?a=1&kid=2">druga - (1)u</a><br /></div>
  22.  
  23. </div>
  24. <div id="stopka">
  25. <p>
  26. <a href="http://validator.w3.org/check?uri=referer"><img
  27. src="http://www.w3.org/Icons/valid-xhtml10"
  28. alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a>
  29. </p>
  30. </div>
  31. </div>
  32.  
  33. </body>
  34. </html>

i walidator mi wywala 24 błędy typu:
Cytat
Line 23, Column 42: general entity "kid" not defined and no default entity.

…v id="srodek"><a href="index.php?a=1&kid=3&kol=2">dół</a> | <a href="index.ph



This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.

# Line 23, Column 45: reference to entity "kid" for which no system identifier could be generated.

…d="srodek"><a href="index.php?a=1&kid=3&kol=2">dół</a> | <a href="index.php?a



This is usually a cascading error caused by a an undefined entity reference or use of an unencoded ampersand (&) in an URL or body text. See the previous message for further details.
# Info Line 23, Column 41: entity was defined here.

…iv id="srodek"><a href="index.php?a=1&kid=3&kol=2">dół</a> | <a href="index.p


Dlaczego - to zwykłe linki są :|
sniezny_wilk
Wydaje mi się, że walidatorowi głównie chodzi o &, zmień je na &amp; w kodzie, przeglądarka pokaże & a walidator się odczepi smile.gif Tu jest info
help_mee
&amp; zamiast & i po kłopcie
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.