Fix Embed Tag Error on W3C Validation Service

Posted by: Joy  :  Category: Web Development
Bookmark and Share

W3C ValidatorThe 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


6 Responses to “Fix Embed Tag Error on W3C Validation Service”

  1. 1
    w3cvalidation Says:

    Nice information, I really appreciate the way you presented.Thanks for sharing..

  2. 2
    pausleal Says:

    Wow this is a great resource.. I’m enjoying it.. good article

  3. 3
    fressya Says:

    tdk dizinkan pmBAJAKAN

  4. 4
    Joy Says:

    ^ maksudnya pemBAJAKAN apa yah ???
    ga jelas nih :-??

  5. 5
    irul Says:

    mas ajari hack facebook donk

  6. 6
    Rossi74 Says:

    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.

Leave a Reply