Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [CSS][HTML] W3C problem z html Strict
Forum PHP.pl > Forum > Przedszkole
gregi1
Mam problem, otóż walidator w3c znalazł u mnie na stronie coś takiego i nie mam pojęcia jak moge to poprawić:

Line 441, Column 138: document type does not allow element "a" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag

…p;cb=45cd63978e1f9f8ccdfcf427b81b726d'><img src='http://www.e-reklama.vot.pl/a…

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

Link:
http://validator.w3.org/check?uri=http%3A%...Validator%2F1.2
Niktoś
Walidatorem nie jestem biggrin.gif Najprawdopodobniej nie domknąłeś któregoś tagu.
Damonsson
Daj taką strukturę <p><a><img/></a></p>
i będziesz miał śliczny zielony wink.gif
gregi1
To jeszcze pytanko, czym mogę zastąpić div aby było zielono.
http://validator.w3.org/check?uri=http%3A%...Validator%2F1.2

Chodzi o drugi error.
Damonsson
Usuń <h3> i </h3> występujące zaraz PO <h3>Galeria</h3>
Linia 259bodajże otwierający i paręnaście linijek niżej zamykający.

No i przenieś style do head, żeby zniknął 1 error.
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.