Skip to content


Failure of success

Ni bukan pasal peksa lak.. pasal CSS. Dah setahun aku tak check W3C HTML/CSS validation untuk web JPA. Baru2 ni aku check ader 48 Error! peh..seteriknyer..Sebenarnya aku nak buat menu yang hanya guna satu file imej sajer tapi bleh guna untuk lebih menu. Sebelum ni w3c check ok tp tu lah “..dunia dah maju, zaman dah berubah..”. HTML aku skrg tu da INVALID W3C!

Aku pun baiki ler HTML/CSS.. dan yang tinggal cuma 5 error, 1 warning. Kalau ikutkan ada 2 yang perlu diperbaiki. Apa pun aku baru dapat tahu yang pengunaan style ni SALAH:

<h1><span>T</span>his is my Heading</h1>

Error mesej dari W3C:

document type does not allow element “hx” here; missing one of “object”, “applet”, “map”, “iframe”, “button”, “ins”, “del” start-tag

Sebabnya tak boleh guna:

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>”).

Hrmm.. terpaksa la cari alternative lain jawabnyer. skrg tak sempat dah..masa dah time. malam karang nk tgk Avatar lak..

Posted in CSS.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.