{"id":9272,"date":"2022-10-06T04:00:51","date_gmt":"2022-10-06T04:00:51","guid":{"rendered":"https:\/\/mdr.foobrdigital.com\/?p=9272"},"modified":"2022-10-06T04:00:51","modified_gmt":"2022-10-06T04:00:51","slug":"html-tag-6","status":"publish","type":"post","link":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/2022\/10\/06\/html-tag-6\/","title":{"rendered":"HTML <applet> Tag"},"content":{"rendered":"\n<p>The&nbsp;&lt;applet&gt;&nbsp;tag was used to define an embedded Java applet. The use of Java applets is now deprecated as most browsers no longer support the use of plug-ins, including the Java plug-in.<\/p>\n\n\n\n<p>The&nbsp;&lt;applet&gt;&nbsp;element can contain other HTML tags and text between its opening and closing tags.<\/p>\n\n\n\n<p>Some browsers still support the&nbsp;&lt;applet&gt;&nbsp;tag, but they require additional plug-in or installations to work.<\/p>\n\n\n\n<p>This element is a\u00a0deprecated HTML tag\u00a0in HTML 4.01 and is entirely obsolete in HTML5. Use the\u00a0&lt;object>\u00a0or\u00a0&lt;embed>\u00a0element instead.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"syntax-3\">Syntax<\/h2>\n\n\n\n<p>The&nbsp;&lt;applet&gt;&nbsp;tag comes in pairs. The content is written between the opening (&lt;applet&gt;) and closing (&lt;\/applet&gt;) tags.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"example-of-the-html-span-class-tag-lt-applet-gt-span-tag-5\">Example of the HTML&nbsp;&lt;applet&gt;&nbsp;tag:<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n  &lt;head&gt;\n    &lt;title&gt;Title of the document&lt;\/title&gt;\n  &lt;\/head&gt;\n  &lt;body&gt;\n    &lt;applet code=\"game.class\" align=\"left\" archive=\"game.zip\" height=\"250\" width=\"350\"&gt;\n      &lt;param name=\"difficulty\" value=\"easy\"&gt;\n      &lt;b&gt;You need Java to play this game.&lt;\/b&gt;\n    &lt;\/applet&gt;\n  &lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"result-7\">Result<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/mdr.foobrdigital.com\/wp-content\/uploads\/2022\/10\/image-33.png\" alt=\"\" class=\"wp-image-9273\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"example-of-the-html-lt-object-gt-tag-used-as-a-replacement-for-the-span-class-tag-lt-applet-gt-span-tag-9\">Example of the HTML &lt;object&gt; tag used as a replacement for the&nbsp;&lt;applet&gt;&nbsp;tag:<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n  &lt;head&gt;\n    &lt;title&gt;Title of the document&lt;\/title&gt;\n  &lt;\/head&gt;\n  &lt;body&gt;\n    &lt;object codetype=\"application\/java\" classid=\"java:programmingtutorials.class\" height=\"200\" width=\"200\"&gt;Programming Tutorials&lt;\/object&gt;\n  &lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"attributes-11\">Attributes<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Attribute<\/th><th>Value<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>align<\/td><td>left<br>right<br>top<br>bottom<br>middle<br>baseline<\/td><td>Is used to position the applet according to other elements.<\/td><\/tr><tr><td>alt<\/td><td>text<\/td><td>Is used to create an alternate text for the applet.<\/td><\/tr><tr><td>archive<\/td><td>URL<\/td><td>Is used to define the archive file&#8217;s location.<\/td><\/tr><tr><td>code<\/td><td>URL<\/td><td>Is used to define the Java applet&#8217;s name.<\/td><\/tr><tr><td>object<\/td><td>name<\/td><td>Is used to define a reference to a serialized representation of an applet.<\/td><\/tr><tr><td>codebase<\/td><td>URL<\/td><td>Gives a relative base URL for applets specified in the code attribute.<\/td><\/tr><tr><td>height<\/td><td>pixels<\/td><td>Defines the height of the applet.<\/td><\/tr><tr><td>hspace<\/td><td>pixels<\/td><td>Is used to define the horizontal space around the applet.<\/td><\/tr><tr><td>name<\/td><td>name<\/td><td>Is used to give a name for the applet.<\/td><\/tr><tr><td>vspace<\/td><td>pixels<\/td><td>Is used to define vertical space around an applet.<\/td><\/tr><tr><td>width<\/td><td>pixel<\/td><td>Is used to define the width of an applet.<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The&nbsp;&lt;applet&gt;&nbsp;tag was used to define an embedded Java applet. The use of Java applets is now deprecated as most browsers no longer support the use of plug-ins, including the Java plug-in. The&nbsp;&lt;applet&gt;&nbsp;element can contain other HTML tags and text between its opening and closing tags. Some browsers still support the&nbsp;&lt;applet&gt;&nbsp;tag, but they require additional plug-in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[529],"tags":[],"_links":{"self":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/9272"}],"collection":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/comments?post=9272"}],"version-history":[{"count":0,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/posts\/9272\/revisions"}],"wp:attachment":[{"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/media?parent=9272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/categories?post=9272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mudassirbackup.infinitycodestudio.com\/index.php\/wp-json\/wp\/v2\/tags?post=9272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}