Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML] Validation
luzak124
post
Post #1





Grupa: Zarejestrowani
Postów: 170
Pomógł: 1
Dołączył: 3.09.2006
Skąd: Białystok

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


Witam.

Napisałem mini skrypt strony no i postanowiłem sprawdzić ją na stronie validator.w3.org no i wyskoczył mi kilka błędów których kompletnie nie rozumiem...
Cytat
Line 101, Column 13: there is no attribute "Method".

<form Method="POST" Action="index.php" Name="form"><input type="hidden" name="PH


You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.


albo:
Cytat
Error Line 1132, Column 7: XML Parsing Error: Premature end of data in tag html line 13.

</html>


Korzystam z doctype XHTML 1.0 Transitional

o co chodzi z tymi błędami ?

Ten post edytował luzak124 17.08.2008, 16:11:17


--------------------
Mądrzy ciągle się uczą, głupcy wszystko umieją.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 3)
Cysiaczek
post
Post #2





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




Atrybuty (wartości też) napisz małymi literami i wtedy zobacz.

Pozdrawiam


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post
luzak124
post
Post #3





Grupa: Zarejestrowani
Postów: 170
Pomógł: 1
Dołączył: 3.09.2006
Skąd: Białystok

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


Pomaga;) ale nadal mam problem np.
Cytat
<input type="hidden" name="user" value="" size="15">

albo
Cytat
# Error Line 1093, Column 32: document type does not allow element "script" here.

<script type="text/javascript">



The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).


--------------------
Mądrzy ciągle się uczą, głupcy wszystko umieją.
Go to the top of the page
+Quote Post
-gosc-
post
Post #4





Goście







Xhtml wymaga aby zamykać wszystkie znaczniki dlatego pisz <input ......................../> a dla <script .....></script>
jest możliwe <script ............./> ale w niektorych przeglądarkach powoduje błedy (IE6)
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 - 07:31