TheDeveloperBlog.com

Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

HTML applet Tag

HTML applet Tag with html tutorial, tags, anchor, img, div, entity, textarea, marquee, p tag, heading tag, h1, h2, table, formatting, attribute, elements, ol, ul, Input Types, block element tag, inline element tag, html tags, phrase tag, head, body, form, lists, symbols etc.

<< Back to HTML

HTML <applet> tag (Not supported in HTML5)

HTML <applet> tag was used to embed the Java applet in an HTML document. This element has been deprecated in HTML 4.0 and instead of it we can use <object> and newly added element <embed>.

The use of Java applet is also deprecated, and most browsers do not support the use of plugins.

Note: The <applet> tag is deprecated in HTML4.0 and not supported in HTML5. So you can use <object> tag or <embed> tag instead of <applet>.

Syntax

<applet code="URL" height="200" width="100">.............</applet>

Following are some specifications about <applet> tag

Display Block
Start tag/End tag Both Start tag and End tag
Usage Embed Applets

Example

<!DOCTYPE html>
<html>
<head>
  <title>Applet Tag</title>
 </head>
 <body>
   <p>Example of Applet Tag</p>
    <applet code="Shapes.class" align="right" height="200" width="300">
     <b>Sorry! you need Java to see this</b>
     </applet>
  </body>
</html>
Test it Now

Attributes

Specific Attributes

Attribute name Value Description
code URL It specifies the URL of Java applet class file.
width pixels It specifies the display width of the applet panel.
height pixels It specifies the display height of applet panel
align
  • left
  • right
  • top
  • middle
  • bottom
It specifies the position of applet application relative to surrounding content.
alt text It is used to display alternative text in case browser does not support Java.
archive URL This specifies the archived or compressed version of an applet application.
object name It specifies the URL or reference to a serialized representation of an applet.
codebase URL It specifies the exact or relative URL of applets .class file specified in the code attribute.
hspace pixels It specifies the horizontal space around the applet.
vspace pixels It specifies the vertical space around the applet.
name name It specifies the name for the applet

Global Attributes

The <applet> tag supports all Global Attributes in HTML

Event Attributes

The <applet> tag supports all Event Attributes in HTML

Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<applet>Not supportedNot SupportedYesNot SupportedYes
Next TopicHTML area Tag




Related Links:


Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf