Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: problem z validacją
Forum PHP.pl > Forum > Po stronie przeglądarki > HTML \ XHTML
dasko
chciałem sobie zvalidować pewną stronkę...

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/frameset.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <link rel="stylesheet" href="new.css" type="text/css" />
  5. <meta http-equiv="content-type" content="text/html; charset=iso-8859-2" />
  6. <meta name="author" content="Dasko" />
  7. <meta name="desciption" content="dasko, Dasko, homepage, Stalowa Wola, Homepage" />
  8. <meta name="keywords" content="dasko, Dasko, homepage, Stalowa Wola, Homepage" />
  9. <title>Nowa strona 1</title>
  10. </head>
  11.  
  12. .............coś tam dalej..............


a tu nagle...

Cytat
Line 12, column 5: document type does not allow element "body" here

<body>

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).


to jedyny błąd w całej stronie! a ja go nie umiem naprawić, zupełnie nie mam pomysłu co mu nie pasuje....

pomóżcie, bo przydałby się taki znaczek, że "Valid XHTML" biggrin.gif
eth
wywal to:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/frameset.dtd">

wstaw to:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

ta strona nie wyglada na strone z ramkami smile.gif
dasko
Ramki w niej są, ale tylko pływające biggrin.gif

Ta zmiana wyeliminowała problem biggrin.gif Dzięki za pomoc!
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.