Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [inne]Niezrozumiały błąd wykryty przez walidator xhtml
Ulysess
post
Post #1





Grupa: Zarejestrowani
Postów: 695
Pomógł: 65
Dołączył: 27.07.2009
Skąd: Y

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


witam tak jak w temacie , próbuje poprawić swoją stronę tak aby była akceptowana przez walidator czyli nie wywalał błędów jednak pokazuje mi błąd który jak dla mnie jest nie zrozumiały...

linia której się tyczy wygląda tak:

wywala coś takiego:

<div style="float: right; padding-top: 25px;"><a href="rejestracja.html"><img src="graphics/img_07.png" alt="Rejestracja" /></a></div>

Error Line 153, Column 46: document type does not allow element "div" here; missing one of "button", "map", "object", "ins", "del", "noscript" start-tag

…yle="float: right; padding-top: 25px;"><a href="rejestracja.html"><img src="gr…



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>").
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Ulysess
post
Post #2





Grupa: Zarejestrowani
Postów: 695
Pomógł: 65
Dołączył: 27.07.2009
Skąd: Y

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


hmm

z tym linkiem/obrazkiem do rejestracji też mam problem , kodem który wyżej zamieściłem otrzymałem taki efekt ->
http://qoooq.kalahir.evuzo.com.pl/test.jpg
czyli taki jaki chciałem, problem w tym że chciałem ten sam efekt otrzymać bez używania używania <br/> nie chciał bym rónież dawać opisu w DIVa...
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 2.10.2025 - 19:52