Using the Object Tag
The newest version of HTML, HTML5, has replaced the <applet> tag with an <object> tag for loading Java applets, Flash programs, and other forms of interactive content. This tag has height and width attributes just like <applet>. There’s also a type attribute that must be “application/x-java-applet”, the designated MIME type of Java applets. (MIME types categorize file formats that can be delivered over the Internet.) Here’s the start to the formatting of an object:
<object type="application/x-java-applet" height="300" width="400"></object>
The code and codebase of an applet are not designated as attributes. Instead, parameters named code and codebase are placed within the opening <object> tag and closing </object> tag.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access