Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS][HTML] W3C problem z html Strict
gregi1
post
Post #1





Grupa: Zarejestrowani
Postów: 134
Pomógł: 0
Dołączył: 24.03.2007

Ostrzeżenie: (0%)
-----


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


--------------------
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 4)
Niktoś
post
Post #2





Grupa: Zarejestrowani
Postów: 1 195
Pomógł: 109
Dołączył: 3.11.2011

Ostrzeżenie: (10%)
X----


Walidatorem nie jestem biggrin.gif Najprawdopodobniej nie domknąłeś któregoś tagu.

Ten post edytował Niktoś 29.11.2011, 23:46:28
Go to the top of the page
+Quote Post
Damonsson
post
Post #3





Grupa: Zarejestrowani
Postów: 2 355
Pomógł: 533
Dołączył: 15.01.2010
Skąd: Bydgoszcz

Ostrzeżenie: (0%)
-----


Daj taką strukturę <p><a><img/></a></p>
i będziesz miał śliczny zielony wink.gif
Go to the top of the page
+Quote Post
gregi1
post
Post #4





Grupa: Zarejestrowani
Postów: 134
Pomógł: 0
Dołączył: 24.03.2007

Ostrzeżenie: (0%)
-----


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.


--------------------
Go to the top of the page
+Quote Post
Damonsson
post
Post #5





Grupa: Zarejestrowani
Postów: 2 355
Pomógł: 533
Dołączył: 15.01.2010
Skąd: Bydgoszcz

Ostrzeżenie: (0%)
-----


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.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 11:36