Quantcast
Channel:
Viewing all articles
Browse latest Browse all 66

HTML applet Tag

$
0
0

Description:

The HTML applet tag is used for embedding a Java applet within an HTML document.

The applet tag is deprecated in HTML 4.01 and is not supported in XHTML (strict DTD) or HTML 5. Use the HTML object tag <object> instead.

Example:

<applet code="appletfile.class" width="400" height="600">
Java applet
</applet>

Attributes:

Attribute

Value

Description
align left
right
top
bottom
middle
baseline
texttop
absmiddle
absbottom
Deprecated – Defines the text alignment around the applet
alt text Alternate text to be displayed in case browser does not support applet
archive URL Applet path when it is stored in a Java Archive ie. jar file
code URL A URL that points to the class of the applet
codebase URL Indicates the base URL of the applet if the code attribute is relative
height pixels Height to display the applet
hspace pixels Deprecated – Defines the left and right spacing around the applet
name name Defines a unique name for the applet
object name Specifies the resource that contains a serialized representation of the applet's state.
title text Additional information to be displayed in tool tip of the mouse
vspace pixels Deprecated – Amount of white space to be inserted above and below the object.
width pixels Width to display the applet.

Standard Attributes:

Attribute

Description

accesskey Access keys (or shortcut keys)
class Document wide identifier
dir Specifies the direction of the text
id Document wide identifier
tabindex Helps determine the tabbing order when the user 'tabs' through the elements on the page.
title Specifies a title to associate with the element.
style Helps to include inline casecadubf style sheet.
lang Sets the language code.

Event Attributes:

Attribute

Description

onclick Script runs when a mouse click
ondblclick Script runs when a mouse double-click
onmousedown Script runs when mouse button is pressed
onmouseup Script runs when mouse button is released
onmouseover Script runs when mouse pointer moves over an element
onmousemove Script runs when mouse pointer moves
onmouseout Script runs when mouse pointer moves out of an element
onkeypress Script runs when key is pressed and released
onkeydown Script runs when key is pressed
onkeyup Script runs when key is released

The post HTML applet Tag appeared first on .


Viewing all articles
Browse latest Browse all 66

Trending Articles