Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [xhtml] validator wskazuje bład z <input>
Forum PHP.pl > Forum > Przedszkole
Suchy
witam. oto co pokazuje mi validator:

Kod
Error Line 16 column 125: 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.
...;" onblur="this.value='Szukaj...';" />

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>").


a to tyczy się tego:

  1. <div id="header">
  2.  
  3. <form action="#">
  4.  
  5. <input type="text" name="search" id="search" value="Szukaj..." onfocus="this.value='';" onblur="this.value='Szukaj...';" />
  6.  
  7. </form>
  8.  
  9. <h1>Suchy.jogger.pl</h1>
  10. <h3>| mój kawałek internetu</h3>
  11.  
  12.  
  13. </div>


i nie wiem właśnie gdzie tu jest błąd a niestety mój angielski nei jest wystarczający
może mnie ktoś oswiecić?
pozdrawiam
MatheW
  1. <form action="#">
  2. <div>
  3. <input type="text" name="search" id="search" value="Szukaj..." onfocus="this.value='';" onblur="this.value='Szukaj...';" />
  4. </div>
  5. </form>
Winno pomóc
Suchy
ok dzieki pomogło validuje się dobrze puki co i wyswietla ok smile.gif
dr_bonzo
<input> wsadz w <fieldset>
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.