Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [w3c]problemy z walidacja
right6
post 12.03.2006, 19:37:48
Post #1





Grupa: Zablokowani
Postów: 206
Pomógł: 0
Dołączył: 9.03.2006

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


  1. <table style="margin-left:auto; margin-right:auto; width:750px; height:100%" cellpadding="2" cellspacing="1" class="tabela_gl">
  2. <tr>
  3. <td>
  4. </td>
  5.  
  6. </tr>
  7. <tr>
  8. <td style="text-align:center;">
  9. <table style="width:100%" cellpadding="1" cellspacing="1">
  10. <tr>
  11. <td valign="top" style="width:20%">
  12.  
  13.  
  14. <table class="tabela_gl" cellpadding="2" cellspacing="1" style="width:100%;margin-bottom:5px;margin-top:0px">
  15. <tr>
  16. <th>
  17.  
  18. <div>
  19. <form action="././sonda/kernel/zapis.php" method="post">
  20. <input name="id_sondy" type="hidden" value="1" />
  21. sonda o ...
  22. </div>
  23. </th>
  24. </tr>
  25. <tr>
  26. <td class="kol3">
  27.  
  28. <span class="zw2b">pytanie w sonddzie questionmark.gif</span>
  29. </td>
  30. </tr>
  31.  
  32. <tr>
  33. <td class="kol1">
  34. <div><input name="check[]" type="checkbox" value="1" /><span class="zw2">opcja 1</span><br /></div>
  35. </td>
  36. </tr>
  37.  
  38.  
  39. <tr>
  40. <td class="kol1">
  41. <div><input name="check[]" type="checkbox" value="2" /><span class="zw2">opcja 2</span><br /></div>
  42. </td>
  43. </tr>
  44.  
  45. <tr>
  46. <td class="kol1">
  47. <div><input name="check[]" type="checkbox" value="4" /><span class="zw2">opcja3</span><br /></div>
  48.  
  49. </td>
  50. </tr>
  51.  
  52. <tr>
  53. <td class="kol1" align="center">
  54. <ins><input type="submit" value="Zagłosuj" /></form></ins>
  55. </td>
  56. </tr>
  57. </td>
  58.  
  59. </tr>


taki maly kod

a tyle bledow ....

Kod
Below are the results of checking this document for XML well-formedness and validity.

   1. Error Line 72 column 144: 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.

      ...="de36ba162658efa6816e772e53f3a800" />

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

      ✉
   2. Error Line 73 column 56: 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.

              <input name="id_sondy" type="hidden" value="1" />

      ✉
   3. Error Line 74 column 10: character data is not allowed here.

                sonda o ...

      You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>) or forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes).

      ✉
   4. Error Line 75 column 12: end tag for "form" omitted, but OMITTAG NO was specified.

             </div>

      You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".

      ✉
   5. Info Line 72 column 8: start tag was here.

              <form action="././sonda/kernel/zapis.php" method="post"><input type="hid

   6. Error Line 104 column 57: end tag for element "form" which is not open.

            <ins><input type="submit" value="Zagłosuj" /></form></ins>

      The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.

      If this error occured in a script section of your document, you should probably read this FAQ entry.


czemu on sie pluje na div ... czy one nei moga byc pezposrednio w <td> questionmark.gif a taki dziwny tag ins ... ?


--------------------
To ja invx sie nazywam ... przepraszam i dziekuje ...
Go to the top of the page
+Quote Post
dr_bonzo
post 12.03.2006, 19:43:49
Post #2





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

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


Cytat
Error Line 72 column 144: 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.

<input> musi byc wewnatrz <fieldset'a> a nie <table>/<td>

  1. <ins><input type="submit" value="Zagłosuj" /></form></ins>

Zle zagniezdzanie tagow:
<form><ins></form></ins>


--------------------
Nie lubię jednorożców.
Go to the top of the page
+Quote Post
Fipaj
post 12.03.2006, 19:44:41
Post #3





Grupa: Zarejestrowani
Postów: 691
Pomógł: 0
Dołączył: 19.01.2005
Skąd: Warszawa

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


Ty idziesz do validatora z takim kodem? Ja się nie dziwię, że on się obraził!
  1. <ins><input type="submit" value="Zagłosuj" /></form></ins>

  1. <ins><input type="submit" value="Zagłosuj" /></ins></form>

Jeden z wielu błędów. Wyrzuć te tabelki i naucz się XHTML-a.

@dr_bonzo: ech ;-) jak pisałem tego posta to twojego jeszcze nie było ;-)

Ten post edytował Fipaj 12.03.2006, 19:45:19


--------------------
Go to the top of the page
+Quote Post
right6
post 12.03.2006, 19:48:11
Post #4





Grupa: Zablokowani
Postów: 206
Pomógł: 0
Dołączył: 9.03.2006

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


XHTML 1.0 nie obsluguje ramek ...

a jak wiec pogodzic schutboxa, z tym standardem questionmark.gif?


--------------------
To ja invx sie nazywam ... przepraszam i dziekuje ...
Go to the top of the page
+Quote Post
luinnar
post 12.03.2006, 19:52:03
Post #5





Grupa: Zarejestrowani
Postów: 155
Pomógł: 0
Dołączył: 15.07.2004
Skąd: Bielsko-Biała

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


XHTML 1.0 Frameset
Ewentualnie można bawić się ajaxem ale to chyba nie to forum.


--------------------
notDevBlog - devblog.luinnar.com
Go to the top of the page
+Quote Post
right6
post 12.03.2006, 19:56:18
Post #6





Grupa: Zablokowani
Postów: 206
Pomógł: 0
Dołączył: 9.03.2006

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


ajax'a to wlasnie mam, ale on jest w iframe ...

a XHTML frame ... to takie troche badziewne ... ?

strict to strict tongue.gif


--------------------
To ja invx sie nazywam ... przepraszam i dziekuje ...
Go to the top of the page
+Quote Post
Fipaj
post 12.03.2006, 20:18:18
Post #7





Grupa: Zarejestrowani
Postów: 691
Pomógł: 0
Dołączył: 19.01.2005
Skąd: Warszawa

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


Takie trochę badziewne. Ale zawsze zostają divy i kilka przeładowań stron więcej.

http://positioniseverything.net/
http://www.cssplay.co.uk/
http://www.meyerweb.com/eric/css/

Ten post edytował Fipaj 12.03.2006, 20:20:11


--------------------
Go to the top of the page
+Quote Post
Fipaj
post 12.03.2006, 20:46:25
Post #8





Grupa: Zarejestrowani
Postów: 691
Pomógł: 0
Dołączył: 19.01.2005
Skąd: Warszawa

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


  1. <style type="text/css">
  2. #scroll {unicode-bidi:bidi-override; direction:rtl; display:block; width:300px; height:100px; overflow:auto; padding:10px; border:1px solid #ba8; margin:0 auto;}
  3. #info {height:15em; min-height:15em;}

  1. <div id="scroll">
  2. <div dir="ltr">
  3. <p>This is a piece of text placed in a div that has a scroll bar on the LEFT</p>
  4. <p>The text, however, ends up as being right justified so it will need another div to reset the direction.<br />
  5. You can size the box anyhow you like but unfortunately not all browsers support this.</p>
  6. <p>Might be useful for something though :)</p>
  7. </div>
  8.  
  9. </div>


--------------------
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 Wersja Lo-Fi Aktualny czas: 10.08.2025 - 22:32