html5 Site Icon CSS3 Site Icon CSS Site Icon

HTML4 Reference

HTML <applet> tag (deprecated)

Definition

The <applet> tag is used to define an embedded applet in our HTML.

Use the <object> tag to define embedded objects for use in HTML.

Example


<applet code="http://htmldoctor.info/apple.class" 
  width="300" 
  height="200"
  alt=href="http://htmldoctor.info/apple.class">View Apple</a>
</applet>

Required Attributes

The code or object attribute must be used.

code specifies the URL location of the Java applet.


<applet code="http://htmldoctor.info/apple.class"></applet>

object specifies a reference to the applet.


<applet object="aReference"></applet>

Optional Attributes

align - Specifies the alignment of the applet to sourrounding elements.


<!-- Valid values are top, right, bottom, left, middle and baseline -->
<applet code="http://htmldoctor.info/apple.class"
        align="top">
</applet>

alt - Specifies an alternate text for the applet.


<applet code="http://htmldoctor.info/apple.class"
        alt="someAlternateText">
</applet>

archive - Specifies a space delimited list of URLs that are relevant to the applet.


<applet code="http://htmldoctor.info/apple.class"
        align="aURL orURLs">
</applet>

codebase - Specifies a base URL location for the archive, classid and data attributes.


<applet code="http://htmldoctor.info/apple.class" 
        codebase="http://htmldoctor.info/">
</applet>

height - Specifies the height of the applet in pixels.


<applet code="http://htmldoctor.info/apple.class" 
        height="300">
</applet>

hspace - Specifies the horizontal spacing around an applet.


<applet code="http://htmldoctor.info/apple.class" 
        hspace="50">
</applet>

name specifies a name for the applet.


<applet code="http://htmldoctor.info/apple.class"
        name="someName">
</applet>

vspace - Specifies the vertical spacing around an applet.


<applet code="http://htmldoctor.info/apple.class" 
        vspace="50">
</applet>

width specifies the width of the applet in pixels.


<applet code="http://htmldoctor.info/apple.class" 
        width="500">
</applet>

Common Attributes

class - specifies a classname for the element allowing you to apply the style of the predefined class to the content.


<applet class="classname"></applet>

id - specifies a unique id for the element allowing you to apply the style of the predefined id to the content.


<applet id="idname"></applet>

style - specifies an inline style for the element allowing you to apply the style to the content.


<applet style="color:red;text-align:left"></applet>

title - specifies extra information about the content.


<applet title="information about the content"></applet>

Language Attributes

NONE

Event Attributes

NONE



<address> tag    << Prev          Next >>   <area /> tag

go to home page Homepage go to top of page Top

HTML Elements

The complete set of HTML elements also known as HTML tags from the latest HTML 4.01 Specification.

Click the links for more information on individual tags and their attributes.

<!--...-->

<!DOCTYPE>

<a>

<abbr>

<acronym>

<address>

<applet>

<area />

<b>

<base />

<basefont />

<bdo>

<big>

<blockquote>

<body>

<br />

<button>

<caption>

<center>

<cite>

<code>

<col />

<colgroup>

<dd>

<del>

<dfn>

<dir>

<div>

<dl>

<dt>

<em>

<fieldset>

<font>

<form>

<frame />

<frameset>

<h1> - <h6>

<head>

<hr />

<html>

<i>

<iframe>

<img />

<input />

<ins>

<isindex />

<kbd>

<label>

<legend>

<li>

<link />

<map>

<menu>

<meta />

<noframes>

<noscript>

<object>

<ol>

<optgroup>

<option>

<p>

<param />

<pre>

<q>

<s>

<samp>

<script>

<select>

<small>

<span>

<strike>

<strong>

<style>

<sub>

<sup>

<table>

<tbody>

<td>

<textarea>

<tfoot>

<th>

<thead>

<title>

<tr>

<tt>

<u>

<ul>

<var>