Fix Embed Tag Error on W3C Validation Service
The W3C Validation Service validates multiple versions of XHTML and HTML, outputing many useful errors and warnings to help users to create a site that meets the W3C standards. If a site meets the W3C standards, it has several advantages. There is also a reasonable chance that the site will looks good in all browsers.
Embed is one of deprecated tags, you will get error message when you use this tag on your page, to fix this issue, you can use object tag instead
For HTML 4.01 Transitional:
For HTML 4.01 Strict (requires a container around code):
For XHTML 1.0 Transitional (requires self-closing end to param):
For XHTML 1.0 Strict (requires a container around code):
or you can also use javascript trick, use document.write+encodeURI to bypass the W3C validation, it will hide errors for embed and some other unacepted tags on the validator, use this tool :
http://crazydavinci.net/valid-w3c/
just enter your HTML then it will generate javascript code to use on your page.
You can see a sample page that has passed W3C validator here :
http://crazydavinci.info
see the source code, there are object tag and document.write trick inside
Proof : Click Here












May 4th, 2010 at 5:48 pm
Nice information, I really appreciate the way you presented.Thanks for sharing..
May 20th, 2010 at 5:00 am
Wow this is a great resource.. I’m enjoying it.. good article
June 6th, 2010 at 1:25 pm
tdk dizinkan pmBAJAKAN
June 6th, 2010 at 11:28 pm
^ maksudnya pemBAJAKAN apa yah ???
?
ga jelas nih
June 13th, 2010 at 2:17 pm
mas ajari hack facebook donk
August 8th, 2010 at 11:06 am
Fine web site, exactly where did you come up with all the info in this piece? I’m pleased I found it although, ill be checking back quickly to see what other articles you might have.
October 25th, 2010 at 1:12 pm
masih belum ngerti bang,,
site ane ada 26 error,,
terus kalo mau masukin yang
For XHTML 1.0 Transitional (requires self-closing end to param):
gimana caranya ??
makasih sebelumnya bang
October 31st, 2010 at 4:52 am
@R_Die
requires self-closing end to param maksudnya ada tag yg harus ditutup
misal tag img klo xhtml ga bs cm :
<img src-blah >
tp hrs tutup blakangnya pk / co :
<img src-blah />
sm halnya kaya br, link dll, liat di suggestionnya bro pas d page w3cnya..
July 18th, 2011 at 2:57 am
walah,,,kalo tengok di eror yang muncul di w3 nya,,malah tambah bingung om,,
soalnya yang muncul kayak gini nih..
p://www.*********.com/index.php” method=”post” name=”addtocart” id=”(a)ddtocart”> yang saya taruh di () tu penyebab erornya,,macem2 gitu dah,,
dari dulu ga sukses2 nih ngerjainnya
)
July 21st, 2011 at 10:36 am
@R_Die
maksudnya gmn bro? kurang jelas komennya?