W3C 에서 웹 표준 검사에서 궁금한점..
1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> 2. <html> 3. <head> 4. <meta http-equiv="refresh" content="0;URL=wiki.php"> 5. </head> 6. 7. <body bgcolor="#FFFFFF" text="#000000"> 8. Click <a href="wiki.php">here</a> to get to the FrontPage. 9. </body> 10. </html>
========
위에가 제 소스 인데요
아래 처럼 에러가 나네요
========
No Character Encoding Found! Falling back to UTF-8.
I was not able to extract a character encoding labeling from any of the valid sources for such information. Without encoding information it is impossible to reliably validate the document. I'm falling back to the "UTF-8" encoding and will attempt to perform the validation, but this is likely to fail for all non-trivial documents.
Read the FAQ entry on character encoding for more details and pointers on how to fix this problem with your document.
Unknown Parse Mode!
The MIME Media Type (text/html) for this document is used to serve both SGML and XML based documents, and it is not possible to disambiguate it based on the DOCTYPE Declaration in your document. Parsing will continue in SGML mode.
This page is not Valid -//W3C//DTD HTML 3.2//EN!
Below are the results of attempting to parse this document with an SGML parser.
1. Error Line 5, column 8: end tag for "HEAD" which is not finished . </head> Most likely, You nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p> Another possibility is that you used an element which requires a child element that you did not include. Hence the parent element is "not finished", not complete. For instance, <head> generally requires a <title>, lists (ul, ol, dl) require list items (li, or dt, dd), and so on.
에러 메시지가 매우
에러 메시지가 매우 친절하게 다 나와있습니다 :)
meta 태그를 써서 encoding을 적어줘야 합니다.
그리고 meta가 안 닫혀서 나오는 에러 같군요. doctype 선언 (가장 앞)이 정확하지 않아서 그렇습니다. 기억에 html은 meta를 안닫아줘도 되던 것 같기도 하고.. 음음;
에러에 나타나는 링크, faq 같은 것을 읽어보세요 :)
댓글 달기