Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [w3c]problemy z walidacja
Forum PHP.pl > Forum > Przedszkole
right6
  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 ... ?
dr_bonzo
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>
Fipaj
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 ;-)
right6
XHTML 1.0 nie obsluguje ramek ...

a jak wiec pogodzic schutboxa, z tym standardem questionmark.gif?
luinnar
XHTML 1.0 Frameset
Ewentualnie można bawić się ajaxem ale to chyba nie to forum.
right6
ajax'a to wlasnie mam, ale on jest w iframe ...

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

strict to strict tongue.gif
Fipaj
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/
Fipaj
  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>
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.