Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [css][html] Zgodność z validatorem
Forum PHP.pl > Forum > Przedszkole
poxrimex
Walidator w3 wywala błąd gdy w tym skrypcie przycisk jest jeszcze w znacznikach <form>, lecz gdy jest po </form> to już wszystko wporządku:

Oto błąd:

Line 38, Column 117: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
…px; height: 25px; margin-top: 5px;" />



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>").
conix
Powodem jest <p>" or "<table> w <a>", "<span>", lub "<font>"
PS. Daj linie bledu...
poxrimex
dla tej wersji kodowej:

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">


i tego kodu:

  1. <form action="zaloguj.php" method="post" style="display: inline">
  2. <input type="image" src="guj.gif" alt="zarejestruj" />
  3. </form>


validator wywala

Line 15, Column 65: document type does not allow element "input" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
…image" src="guj.gif" alt="zarejestruj" />



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>").
grzesiek_g
W XHTML 1.0 Strict element formularza jakim jest input MUSI być zamknięty w innym znaczniku. Jakim? Walidator już Ci odpowiedział.
poxrimex
no fakt działa już ;]
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.