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.

Although they got (really) "valid XHTML" status from W3C Markup Validator (not only text / button / banner), some failed on validome.org validation. From the List of Valid XHTML Sites, I found most of websites and weblogs only have simple errors/remarks/warnings. I guess the (validome) validation result pages were clearly defined. Some documentations (slightly edited):

1. MIME-type problem

Remarks

This XHTML 1.0 document was delivered with MIME-Type text/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 "text/html", what is not recommended. Please change the MIME-Type in the HTTP-Header (Content-Type=xxx) to "application/xhtml+xml".
It clear enough but there are several advance solutions, I guess. Don't ask me..I'm beginner, not a web developer/designer/programmer.. :)

2. Encoding declaration problem

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.
Clear enough. Add an XML declaration or server side script.

3. Link warnings

On Strict DOCTYPE, e.g. :
The Link "#search" points to a not existing Anchor.
The Link "#sidebar" points to a not existing Anchor.

4. META problem

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="...">
Just need to add that meta.

Error

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).
Add the meta will solve problem. So we can use inline script legally, e.g. :
Error Position: <onclick="...">
Error Position: <onfocus="...">

5. Attribute problem

Error

Invalid value "...px" in attribute "width" (and "height"). Only integer or percentage values (e.g. 10%) are allowed.
Delete px, so it's become e.g. width="80" and/or height="31". Just unessential weblog
Dani Iswara, mail me: [myfirstnamelastname]@gmail.com.

You are free to share (copy, distribute, transmit) & adapt this blog post under the similar license (Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported; CCA-NC-SA 3.0 Unported). Please put these links on your copy:
Taken from: Failed on Validome-XHTML Validation by Dani Iswara.

Unimportant Related/Random Posts

You may also read list of most popular posts and most popular tags of Dani Iswara .Net.

4 Responses to post titled: Failed on Validome-XHTML Validation

  1. 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.

  2. 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.. :)

Trackbacks/Pingbacks

  1. Pingback by Memilih HTML dibandingkan XHTML - Dani Iswara .Net - Indonesia Physician Weblog on May 1, 2008 at 01:46:11
    WordPress 2.5.1

    [...] Kode <style> dan <script> sebaiknya ditandai pada baris meta seperti anjuran di Failed on Validome - XHTML Validation. [...]

  2. Pingback by Google PageRank 0 to 5 in 2 Months - Dani Iswara .Net - Indonesia Physician Weblog on May 8, 2008 at 11:10:32
    WordPress 2.5.1

    [...] I got several problems with XHTML validation. It made me to change template too often (read failed on validome xhtml validation). [...]

Sorry, for some reasons (sometimes due to sp*ms attack), the comment form is closed at this time. If You have any suggestions, please contact me. Thank you.

Dani Iswara .Net

Return to TOP
›› Older entries: Dari Seminar eHealthcare di JIH (Sesi 2)
‹‹ Newer entries: Kelemahan UU ITE menurut AII