HTML <embed> tag not supported

I get the following warning in an ASP.NET project, using the <embed> tag to install .swf:

Warning: Validation (XHTML 1.0 Transitional): Element 'embed' is not supported.

What is the “supported” way to do this instead?

+3
source share
5 answers

A custom tag is embednot supported in XHTML in favor of a standards-based element object. See http://www.bernzilla.com/item.php?id=681 for more information about this, but in a nutshell:

<object type="application/x-shockwave-flash" data="c.swf?path=movie.swf" width="400" height="300">
    <param name="movie" value="c.swf?path=movie.swf" />
    <img src="noflash.gif" width="200" height="100" alt="No Flash" />
</object>

, object , . A List Apart : " Flash Satay: Flash, ", , .

+6

, SWFObject, , , -. , Flash satay Dereleased .

+4

HTML5 (, , XHTML5) <embed>. HTML5 (<!DOCTYPE html>) .

+3

<object>.

: http://www.w3.org/TR/REC-html40/struct/objects.html#h-13.3

embed , .

<object type="application/x-shockwave-flash" data="movie.swf">
     <param name="movie" value="movie.swf" /> 
</object>

, , param , window mode (wmode) .. , IE , JS embed , IE .

+2
source

This article describes in some detail how to embed flash files while maintaining standards:

List: Flash Satay: Stand-Alone Flash Insert

+2
source

Source: https://habr.com/ru/post/1720633/


All Articles