Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
画像やswfを表示できる機能を作りたいのですが、両方表示できる埋め込みタグに気づきましたが、調べてみたところ何もわかりませんでしたが、使用にはマイナス面がありますか?
例:
<embed src="image.png" /> <embed src="flash.swf" />
どちらもタイプを含めなくても機能します。
実際には<img>、画像ではなくタグを使用する必要があります<embed>。代わりに、最初にファイルタイプを把握してから、ファイルタイプに応じて<img>ORを使用してください。<embed>
<img>
<embed>
はい。ただし、<embed>タグの使用はお勧めしません。