Horje
HTML <applet> Tag

Not Supported in HTML5.

The tag was used in HTML 4 to define an embedded applet (Plug-in).


Plug-ins for HTML <applet> Tag

Plug-ins are a computer programs that extend the standard functionality of the browser.

Plug-ins have been used for many different purposes:

Most browsers no longer support Java Applets and Plug-ins.

ActiveX controls are no longer supported in any browsers.

The support for Shockwave Flash has also been turned off in modern browsers.

What to Use Instead of HTML <applet> Tag?

You can use following tags instead of HTMLTag.
<video> <audio> <embed> <object>

Use <video> Tag Instead of HTML <applet> Tag

If you want to embed a video, use the <video> tag:

index.html
Example: HTML
 <video width="320" height="240" controls>
  <source src="https://www.w3schools.com/tags/movie.mp4" type="video/mp4">
  <source src="https://www.w3schools.com/tags/movie.mp4" type="video/ogg">
  Your browser does not support the video tag.
</video> 

Output should be:

Use <video> Tag Instead of HTML <applet> Tag

How to Use <audio> Tag Instead of HTML <applet> Tag

If you want to embed audio, use the <audio> tag:

index.html
Example: HTML
<audio controls>
  <source src="https://www.w3schools.com/tags/horse.ogg" type="audio/ogg">
  <source src="https://www.w3schools.com/tags/horse.ogg" type="audio/mpeg">
  Your browser does not support the audio element.
</audio>

Output should be:

How to Use <audio> Tag Instead of HTML <applet> Tag

How to Use <embed> Tag Instead of HTML <applet> Tag

To embed objects, you can use both the <embed> tag and the <object> tags:

Embed a document with the <embed> element:

 

index.html
Example: HTML
 <embed src="https://horje.com/avatar.png"> 

How to Use <object> Tag Instead of HTML <applet> Tag

To object you can use <object> tags:

index.html
Example: HTML
<object data="https://horje.com/avatar.png" width="300" height="200"></object>

Output should be:

How to Use <object> Tag Instead of HTML <applet> Tag





Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin


Read Article
https://horje.com/learn/1434/reference