Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [xhtml] form + w3c
Zajec
post
Post #1





Grupa: Zarejestrowani
Postów: 1 086
Pomógł: 8
Dołączył: 10.12.2003

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


Kodzik:
[xml:1:6aa86b98d9]<div class="tresc2">
<form action="index.php" method="post" style="display:inline;">

<span class="text2">Login: <input type="text" name="loginek" size="10" /> </span>
<br />
<span class="text2">Hasło: <input type="password" name="haselko" size="10" /> </span>
<br />
<br />
<input type="hidden" name="co1" value="loguj" />
<input type="submit" name="Zaloguj" value="Zaloguj" />

</form>
</div>[/xml:1:6aa86b98d9]

I niestey validator znów mnie nie lubi :wink:
Cytat
Line 63, column 19: document type does not allow element "span" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "pre", "address", "fieldset" start-tag
<span class="text2">Login: <input type="text" name="loginek" size="10" /> </sp..

Line 64, column 5: document type does not allow element "br" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "pre", "address", "fieldset" start-tag
<br />

Line 65, column 19: document type does not allow element "span" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "pre", "address", "fieldset" start-tag
<span class="text2">Hasło: <input type="password" name="haselko" size="10" /> <

Line 66, column 5: document type does not allow element "br" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "pre", "address", "fieldset" start-tag
<br />

Line 67, column 5: document type does not allow element "br" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "pre", "address", "fieldset" start-tag
<br />

Line 68, column 47: document type does not allow element "input" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "address", "fieldset" start-tag
<input type="hidden" name="co1" value="loguj" />

Line 69, column 53: document type does not allow element "input" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "address", "fieldset" start-tag
<input type="submit" name="Zaloguj" value="Zaloguj" />

Line 71, column 6: end tag for "form" which is not finished (explain...).
</form> </div>


Czy umielibyście powiedzieć dlaczego ? :?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Zajec
post
Post #2





Grupa: Zarejestrowani
Postów: 1 086
Pomógł: 8
Dołączył: 10.12.2003

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


Skopiowałem cały Twój kod, wkleiłem a następnie zamieniłem "ś" na "s".
Taką stronkę otworzyłem w O, wklepałem ctrl+alt+v - "This Page Is Valid XHTML 1.1!"

[xml:1:1556ac0062]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-2" />
<title> test </title>
</head>
<body>
<div>


Ocena: <form method="post" action="schematy.php"> <p class="form"> <input type="hidden" name="ID" value="237"/> 8.44 (Ilosć
głosów: 25) <select size="1" name="ocena" class="pole">
<option value="0">Wybierz</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>

<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>

</select> <input type="submit" class="pole" value="OK"/>
</p> </form>


</div>
</body>
</html>[/xml:1:1556ac0062]


[edited]
1) usunąłem znacznik <object> - też wszystko w porządku u validator'a
2) zamykając zanczniki takie jak img, input postaraj się robić spację przed /> (zalecenie w3c jak się nie mylę)
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: 27.12.2025 - 12:00