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












December 27th, 2011 at 3:55 am
How can i use this code in my website. please help me. my site is:
my-soft24.blogspot.com
BLOGGER…..
mysoft24@gmail.com