Fix Embed Tag Error on W3C Validation Service

Posted by: Joy  :  Category: Web Development

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


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

Pages: [1] 2 » Show All

  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.

  7. 7
    R_Die Says:

    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

  8. 8
    Joy Says:

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

  9. 9
    R_Die Says:

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

  10. 10
    Joy Says:

    @R_Die
    maksudnya gmn bro? kurang jelas komennya? :D

Pages: [1] 2 » Show All

Leave a Reply

Comment moderation is enabled. Your comment may take some time to appear.