w3schools
  
HOME HTML CSS XML JAVASCRIPT ASP PHP SQL MORE...   References Examples Forum About

HTML Reference

HTML by Alphabet
HTML by Function
HTML Attributes
HTML Events
HTML Valid DTDs
HTML Colornames
HTML Colorpicker
HTML Colormixer
HTML Character Sets
HTML ASCII
HTML ISO-8859-1
HTML Symbols
HTML URL Encode
HTML Lang Codes
HTTP Messages

HTML Tags

<!-->
<!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>
<head>
<h1> - <h6>
<hr>
<html>
<i>
<iframe>
<img>
<input>
<ins>
<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>

HTML <applet> Tag

The applet element is deprecated.

Example

An embedded Java applet:

<applet code="Bubbles.class" width="350" height="350">
Java applet that draws animated bubbles.
</applet>


Definition and Usage

The <applet> tag defines an embedded applet.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

Note: There is still some support for the <applet> tag in some browsers, but it requires additional plug-ins/installations to work.


Differences Between HTML and XHTML

The applet element was deprecated in HTML 4.01, and is not supported in XHTML 1.0 Strict DTD.


Tips and Notes

Tip: To include applets, use the <object> tag instead!


Required Attributes

DTD indicates in which DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.

Attribute Value Description DTD
code URL Specifies the file name of a Java applet TF
object name Specifies a reference to a serialized representation of an applet TF

Optional Attributes

Attribute Value Description DTD
align left
right
top
bottom
middle
baseline
Specifies the alignment of an applet according to surrounding elements TF
alt text Specifies an alternate text for an applet TF
archive URL Specifies the location of an archive file TF
codebase URL Specifies a relative base URL for applets specified in the code attribute TF
height pixels Specifies the height of an applet TF
hspace pixels Defines the horizontal spacing around an applet TF
name name Defines the name for an applet (to use in scripts) TF
vspace pixels Defines the vertical spacing around an applet TF
width pixels Specifies the width of an applet TF


Standard Attributes

The <applet> tag supports the following standard attributes:

Attribute Value Description DTD
class classname Specifies a classname for an element STF
id id Specifies a unique id for an element STF
style style_definition Specifies an inline style for an element STF
title text Specifies extra information about an element STF

More information about Standard Attributes.


Event Attributes

The <applet> tag does not support any event attributes.

More information about Event Attributes.



The Creators of XMLSpy are Pleased to Announce

The MOST WANTED features for Developers and
IT Professionals in Version 2010

Collect your handsome reward! Download a free trial and experience more than 70 of the Most Wanted features including:

  • JSON editing & conversion in XMLSpy
  • WSDL 2.0 editing in XMLSpy (adding to WSDL 1.1 support)
  • WSDL 2.0 data mapping in MapForce
  • Numerous data mapping enhancements in MapForce
  • Numerous stylesheet design enhancements in StyleVision
  • XML Schema comparison in DiffDog
  • And much more!
Fully functional 30-day free trial of the Altova MissionKit
Altova XMLSpy


WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Top 10 Web Hosting
UK Reseller Hosting
Web Hosting
FREE Web Hosting
Top Web Hosting
Windows Hosting
WEB BUILDING
Download XML Editor
FREE Flash Website
FREE Web Templates
FLIGHT TICKETS
Find the cheapest flight
to any destination now!
EDUCATION
US Web Design Schools
HTML Certification
JavaScript Certification
XML Certification
PHP Certification
ASP Certification
STATISTICS
Browser Statistics
Browser OS
Browser Display