Displaying Images as "embed" Elements - Example

This section provides a tutorial example on how to display images using 'embed' elements.

One simple use of <embed> elements is to include images into HTML documents. To show you how to do this, I wrote the following tutorial example, embed_gif.html:

<!-- embed_gif.html
 - Copyright (c) 2014, HerongYang.com, All Rights Reserved.

<p>1. Image with "embed[@src]":</p>
<table border="1" cellpadding="0" cellspacing="0">
<embed src="yahoo.gif"/>

<p>2. Image with "embed[@src and @type]" attributes:</p>
<table border="1" cellpadding="0" cellspacing="0">
<embed src="yahoo.gif" type="audio/x-wav"/>

<p>3. Image with "embed[@src and @type and @width and @height":</p>
<table border="1" cellpadding="0" cellspacing="0">
<embed src="yahoo.gif" type="image/gif" width="100" height="100"/>


In this example, I created 3 tests with 3 <object> elements to test 4 attributes: "src", "type", "width" and "height":

If you want to test this example yourself, you need to save the image below as yahoo.gif:

Halloween on Yahoo!
Halloween on Yahoo!

If you want to see my test results, read next sections.

Table of Contents

 About This Book

 Introduction of Adobe Flash

 Adobe Flash Player Plugin for Firefox

 Adobe Flash Player Plugin for Chrome

 Adobe Flash Player Plugin for Safari

 Adobe Flash Player ActiveX for IE

 Using "object" Elements for Flash Files

Using "embed" Elements for Flash Files

 What Is "embed" Element?

Displaying Images as "embed" Elements - Example

 Displaying Images as "embed" Elements on Firefox 26

 Displaying Images as "embed" Elements on IE 10

 Playing Flash as "embed" Elements - Example

 Playing Flash as "embed" elements on Firefox 26

 Playing Flash as "embed" Elements on IE 10

 Playing Flash with Nested "object.embed" Elements

 "mp3player" - MP3 Music Player

 SWFObject - Hidding "object" behind JavaScript

 Flash Player Projector

 SWFTools - SWF File Manipulation Tools

 SWFC Script to Generate Flash SWF Files

 ActionScript Embedded in SWFC Script

 AS3Compile - ActionScript 3 Compiler

 Adobe Flex SDK 4

 SWF File Structure and Tags

 SWF File Processing Rules

 SWF Files for Video and Audio Streams

 Outdated Tutorials


 Full Version in PDF/EPUB