Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [xhtml] validator wskazuje bład z <input>
Suchy
post
Post #1





Grupa: Zarejestrowani
Postów: 52
Pomógł: 0
Dołączył: 19.03.2006

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


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
Go to the top of the page
+Quote Post
MatheW
post
Post #2





Grupa: Zarejestrowani
Postów: 135
Pomógł: 0
Dołączył: 29.05.2006
Skąd: Lublin

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


  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


--------------------
[gg:8166107][jid:mmatheww@jabberpl.org][mail:mat.wojcik[at]gmail.com][www: http://mwojcik.pl]
Go to the top of the page
+Quote Post
Suchy
post
Post #3





Grupa: Zarejestrowani
Postów: 52
Pomógł: 0
Dołączył: 19.03.2006

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


ok dzieki pomogło validuje się dobrze puki co i wyswietla ok smile.gif
Go to the top of the page
+Quote Post
dr_bonzo
post
Post #4





Grupa: Przyjaciele php.pl
Postów: 5 724
Pomógł: 259
Dołączył: 13.04.2004
Skąd: N/A

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


<input> wsadz w <fieldset>


--------------------
Nie lubię jednorożców.
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: 19.08.2025 - 19:42