HTML Plug-ins

Plug-ins are computer software which extends the default browser functionality.

Plug-ins were created with a variety of uses in mind :

  • Java applets must be installed in order for them to work.
  • Microsoft ActiveX controls must be used in order to function.
  • Flash movies will be displayed.
  • Maps are displayed.
  • to perform a virus scan.
  • To check the validity of a bank card.

Warning :-

Java Applets and Plug-ins are no longer supported by the majority of browsers.

Controlling ActiveX in any browser is no longer supported.

In modern browsers, support for Shockwave Flash has also been switched off.

There are two elements available to plugin external contents, which is:
  • object:- It is currently the standard tag used to embed external contents on a page.
  • embed:- It is the oldest and deprecated one.

The <object> Element

All browsers recognise the object element.

An embedded object in an HTML document is defined by the object element.

It is intended for the inclusion of computers resources or documents in web pages, such as Java applets, PDF readers and Flash Player, but can also be used for the purpose of HTML documents or text files.

Example 1:- Read an HTML page

<!DOCTYPE html>
<html>
<body>
<object width="100%" height="500px" data="html-resources/demo.htm"></object>
</body>
</html>

Output :-


Example 2:- Display an image

<object data="html-resources/209px-Wikipedia-logo.png"></object>

Output :-


Example 3:- Embed an youtube video

<object width="320" height="240" data="https://www.youtube.com/embed/O6mwkeIVMpI">
    </object>

Output :-


You can also search for these topics, html object type, html object vs iframe, object element link, object vs embed, the html object element used, display images and youtube vide, read or load html files.