Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [css]walidacja
Forum PHP.pl > Forum > Przedszkole
gosienkami
<H3 class=invalid>mam takie błędy na stronie , w kodzie wyglada ze wszystko jest ok
Validation Output: 5 Errors </H3>
    <LI class=msg_err> Line 14, Column 6: 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).

    <LI class=msg_err> Line 252, Column 7: end tag for "head" omitted, but OMITTAG NO was specified </html>

    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".

    <LI class=msg_info> Line 3: start tag was here ><head><LI class=msg_err> Line 252, Column 7: end tag for "html" which is not finished </html>

    Most likely, you nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>

    Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, in HTML the <head> element must contain a <title> child element, lists (ul, ol, dl) require list items (li, or dt, dd), and so on.

    <LI class=msg_err> Line 252, Column 7: XML Parsing Error: Opening and ending tag mismatch: head line 3 and html </html>
  1. Line 252, Column 7: XML Parsing Error: Premature end of data in tag html line 2 </html>
Fifi209
Może tak html i css pokażesz?
gosienkami
css jest ok
chyba w innym miejscu musi czegoś brakować niż zaznacza
slightyboy
Najprawdopodobniej problem tkwi w niedomkniętych tagach listy lub jej elementu (odpowiednio "<ul>" i "<li>"). Pokaż lepiej kod HTML. smile.gif
gosienkami
lista zamknięta wiec już nie wiem sciana.gif

guilty82
nikt nic nie wymyśli dopóki nie pokażesz nam kodu html lub linku do swojej strony
gosienkami
juz widze błąd brakowało </head>
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.