Failed on Validome-XHTML Validation
Posted: April 23, 2008 at 23:19:45 by Dani Iswara. Words count: 351.
Last updated: September 22, 2009 at 21:15:14.
1. MIME-type problem
Remarks
This XHTML 1.0 document was delivered with MIME-Typetext/html. This MIME-Type should not be used, if the document does not correspond to the HTML Compatibility Guidelines (for XHTML 1.0).
This XHTML 1.1-Document was delivered with the MIME-Type "It clear enough but there are several advance solutions, I guess. Don't ask me..I'm beginner, not a web developer/designer/programmer.. :)text/html", what is not recommended. Please change the MIME-Type in the HTTP-Header (Content-Type=xxx) to "application/xhtml+xml".
2. Encoding declaration problem
Clear enough. Add an XML declaration or server side script.Warnings
No encoding declaration found within this XHTML document. However the validator found a Meta element containing some information concerning encoding (utf-8). This kind of encoding declaration will be not processed within XHTML documents, it is useful for downward compatibility to HTML. Please add either a XML declaration containing a encoding information at the very beginning of your document (z. B.<?xml version="1.0" encoding="utf-8"?>, or prompt your server to send an appropriate HTTP-Header (example for PHP users:header('Content-Type: text/html; charset=utf-8');). As no valid encoding declaration found, your document was processed via fallback to UTF-8.
3. Link warnings
On StrictDOCTYPE, e.g. :
The Link "#search" points to a not existing Anchor.
The Link "#sidebar" points to a not existing Anchor.
4. META problem
Just need to add that meta.Error
When using style attributes, you must specify the style language within a META element (<meta http-equiv="Content-Style-Type" content="text/css" />) and/or within HTTP-Header (Content-Style-Type: text/css). Here you can find more informations. Error Position:<... style="...">
Add the meta will solve problem. So we can use inlineError
When using embedded events (Event-Handler), script language must be specified within Meta-Tag (<meta http-equiv="Content-Script-Type" content="text/javascript" />) or HTTP-Header (Content-Script-Type: text/javascript).
script legally, e.g. :
Error Position: <onclick="...">
Error Position: <onfocus="...">
5. Attribute problem
DeleteError
Invalid value "...px" in attribute "width" (and "height"). Only integer or percentage values (e.g. 10%) are allowed.
px, so it's become e.g. width="80" and/or height="31".
Dani Iswara, mail me: [myfirstnamelastname]@gmail.com.
Comment by riesurya on June 11, 2008 at 22:26:04
using Opera 9.27 on Windows XP
he he he, iya juga. ternyata validome.org jauh lebih ketat dp W3C ya mas. begitu coba pake validome, diklik = failed !!! ha ha ha ....
tx u/ infonya. benar-2 menginspirasi u/ eksperimen berikutnya.
Comment by dani on June 11, 2008 at 22:39:50
using Firefox 2.0.0.14 on GNU/Linux
- riesurya:
sepintas ktnya memang lbh strict..tp ada hal2 yg berlaku normatif, oleh validator versi w3c masi dibolehkan.. :)