Embed tag not supported

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dinesh1985singh
    New Member
    • Apr 2010
    • 49

    #1

    Embed tag not supported

    Hello everybody,

    I have to validate a site. Doctype for our site isxhtml1.0
    . As xhtml 1.0 does not support embed tag, on validation it throws an undefined "embed" element error . So how could I resolve it .
    Please help me out in this regard. As soon as possibly. I need to fix it urgently.

    Thanks
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    You can't. There is no such thing as embed. You should use 'object' instead.

    Comment

    • dinesh1985singh
      New Member
      • Apr 2010
      • 49

      #3
      I agree with you that there is no embed tag in html 4.0 and xhtml 1.0 , but even though we need to use embed tag for better browser compatibility, some older version browsers does not support object element thats why I am asking for some alternative. I have to use both embed and object element for browser compatibility moreover I need that document to be valid as well .

      Comment

      • drhowarddrfine
        Recognized Expert Expert
        • Sep 2006
        • 7434

        #4
        The only browser that had problems with the object tag is IE, as always is the case, but I don't recall what those are. So it's not a "cross compatibility" issue, it's an IE issue.

        Whenever anyone talks about "cross compatibility" they mean "it doesn't work in IE".

        Comment

        Working...