HTML <applet> Tag
Not supported in HTML5.
<applet>
Tags in HTML 4 are used to define embedded applets (plugins).
Plugins
Plugins are computer programs that extend the standard features of the browser.
Plugins have been used for many different purposes:
- Run Java applets
- Run ActiveX controls
- Display Flash movie
- Display map
- Scan for viruses
- Verify bank ID
Most browsers no longer support Java applets and plugins.
No browser supports ActiveX controls anymore.
Modern browsers have also stopped supporting Shockwave Flash.
What to use instead?
If you want to embed video, please use <video>
Tag:
Example 1
<video width="640" height="360" controls> <source src="shanghai.mp4" type="video/mp4"> <source src="shanghai.ogg" type="video/ogg"> Your browser does not support the video tag. </video>
If you want to embed audio, please use <audio>
Tag:
Example 2
<audio controls> <source src="song.ogg" type="audio/ogg"> <source src="song.mp3" type="audio/mpeg"> Your browser does not support the audio tag. </audio>
To embed an object, you can use both <embed>
Tags and <object>
Tag:
Example 2
Usage <embed>
Embedding Document Element:
Example 3
Example 4
Usage <embed>
Embedding Image Element:
<embed src="tulip.jpg">
Example 5
Usage <object>
Embedding Document Element:
<object data="/index.html"></object>
Example 6
Usage <object>
Embedding Image Element:
<object data="tulip.jpg"></object>
Tip:To embed an image, it is best to use <img>
tag. To embed a document, it is best to use <iframe>
Tags.