HTML Learning:
The HTML Elements reference.
"applet" - html element (deprecated)
- This element is used to embed Java applets.
- Starttag <applet> is Required and endtag </applet> is Required
- It has been deprecated in favor of the more generalized 'object' element.
- Browsers that support the applet - element :
Element "applet" example:
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<h1>Java applet Clock</h1>
<applet width="150" height="150" code="Clock"
archive="Clock.jar">
</applet>
</body>
</html>
Attributes:
align (deprecated), alt (deprecated), archive (deprecated), class (deprecated), code (deprecated), codebase (deprecated), height (required)(deprecated), hspace (deprecated), id (deprecated), name (deprecated), object (deprecated), style (deprecated), title (deprecated), vspace (deprecated), width (required)(deprecated)
Attribute "align" value(s): depend on which element bottom, middle, top, left or right
Attribute "alt" value(s): text
Attribute "archive" value(s): uri-list
Attribute "class" value(s): A list of style class names that must be separated by white space characters.
Attribute "code" value(s): sequence of characters
Attribute "codebase" value(s): uri
Attribute "height" value(s): length
Attribute "hspace" value(s): pixels
Attribute "id" value(s): unique name
Attribute "name" value(s): sequence of characters
Attribute "object" value(s): sequence of characters
Attribute "style" value(s): style
Attribute "title" value(s): text
Attribute "vspace" value(s): pixels
Attribute "width" value(s): length
align (deprecated), alt (deprecated), archive (deprecated), class (deprecated), code (deprecated), codebase (deprecated), height (required)(deprecated), hspace (deprecated), id (deprecated), name (deprecated), object (deprecated), style (deprecated), title (deprecated), vspace (deprecated), width (required)(deprecated)
Attribute "align" value(s): depend on which element bottom, middle, top, left or right
- Specifies the horizontal alignment of its element with respect to the surrounding context.
- You should use styles (CSS) instead.
Attribute value | description |
---|---|
bottom | Means that the bottom of the applet should be vertically aligned with the current baseline. This is the default value. |
middle | Means that the center of the applet should be vertically aligned with the current baseline. |
top | Means that the top of the applet should be vertically aligned with the top of the current text line. |
left | Cause the applet to float to the current left margin. |
right | Cause the applet to float to the current right margin. |
Attribute "alt" value(s): text
- A short description. For user agents that cannot display images, forms, or applets, this attribute specifies alternate text.
Attribute "archive" value(s): uri-list
- This attribute specifies a comma-separated list of URIs for archives containing classes and other resources that will be "preloaded".
- For a applet this could be a jar file containing the applet class and other java classes used by the applet.
Attribute "archive" example:
Attribute "class" value(s): A list of style class names that must be separated by white space characters.
- This attribute assigns a style class name or set of style class names to an element. Any number of elements may be assigned the same class name or names.
- You will find more about this in the CSS learning on this site.
Attribute "code" value(s): sequence of characters
- Specifies either the name of the class file that contains the applet's compiled applet subclass or the path to get the class, including the class file itself. It is interpreted with respect to the applet's codebase.
- One of code or object must be present.
Attribute "codebase" value(s): uri
- Specifies the base path used to resolve relative URIs specified by the classid, data, and archive attributes.
- When absent, its default value is the base URI of the current document.
Attribute "height" value(s): length
- This attribute specifies the height of the rule. Specifies the initial height of the applet's display area (excluding any windows or dialogs that the applet creates)
- You should use styles (CSS) instead. (except for the object and iframe element)
Attribute "hspace" value(s): pixels
- Specifies the amount of white space to be inserted to the left and right of an IMG, APPLET, or OBJECT.
- The default value is not specified, but is generally a small, non-zero length.
Attribute "id" value(s): unique name
- This attribute assigns an identification name to an element. This name must be unique in a document
- Id is often used when one wants to search for an item using javascript or vbscript.
Attribute "name" value(s): sequence of characters
- A control's "control name" is given by its name attribute. specifies a name for the applet instance, which makes it possible for applets on the same page to find (and communicate with) each other.
Attribute "object" value(s): sequence of characters
- Names a resource containing a serialized representation of an applet's state. It is interpreted relative to the applet's codebase. The serialized data contains the applet's class name but not the implementation. The class name is used to retrieve the implementation from a class file or archive.
- Either code or object must be present. If both code and object are given, it is an error if they provide different class names.
Attribute "style" value(s): style
- Specifies style sheet (CSS) information for the current element.The syntax of the value of the style attribute is determined by the default style sheet language.
- You will find more about this in the CSS learning on this site.
Attribute "title" value(s): text
- This attribute offers advisory information about the element for which it is set.
Attribute "title" example:
<html>
<head>
<title>title attribute</title>
</head>
<body >
<h1 title="Heading 1">This is a Heading 1</h1>
<h2 title="Heading 2">This is a Heading 2</h2>
<h3 title="Heading 3">This is a Heading 3</h3>
<h4 title="Heading 4">This is a Heading 4</h4>
<h5 title="Heading 5">This is a Heading 5</h5>
<h6 title="Heading 6">This is a Heading 6</h6>
</body>
</html>
Attribute "vspace" value(s): pixels
- Specifies the amount of white space to be inserted above and below an IMG, APPLET, or OBJECT.
- The default value is not specified, but is generally a small, non-zero length.
Attribute "width" value(s): length
- This attribute specifies the width of the rule. The default width is 100%, i.e., the rule extends across the entire canvas. Specifies the initial width of the applet's display area (excluding any windows or dialogs that the applet creates).
- You should use styles (CSS) instead. (except for the object and iframe element)
The applet element have not any Events!
The applet element can contain the following element(s):
Elements | Description |
---|---|
a | The A element denotes an anchor; a hypertext link or the destination of a link. |
abbr | This element allows authors to clearly indicate a sequence of characters that define an abbreviation for a word. |
acronym | Indicates an acronym abbreviation. |
address | ADDRESS is used to supply contact information for a web document. |
applet | (deprecated) This element is used to embed Java applets. |
b | This element renders the text betweeen the start and end tag in bold. |
basefont | (deprecated) The BASEFONT element is used to set a default font size. #You should include the element in the header section ($'head') of the document. #You should avoid using this as It is only supported by Internet Explorer. |
bdo | This element overrides the bidirectional algorithm for the enclosed text. |
big | The big element is a text formatting control that increments the enclosed text by one size. |
blockquote | This element is used to format the text as a block quote, which means the right and left margins are indented from the text before and after the quote. |
br | Forced line break |
button | This element defines a submit button, reset button, or push button. |
center | (deprecated) This element defines a block whose contents are centered horizontally on visual browsers. |
cite | This element is used to markup citations, such as titles of magazines or newspapers, ship names, references to other sources, and quotation attributions. |
code | This element shows text that is intended to be shown in a monospaced font. #This is useful for programming code. |
dfn | This element denotes the defining instance of a term. #Visual browsers typically render enclosed text as italic. |
dir | (deprecated) This element was designed to be used for creating multicolumn directory lists. |
div | This element offer a generic mechanism for adding structure to documents. # The <DIV> tag is used to divide a document up into artificial sections such as chapters, sections, appendix and so on. |
dl | This element defines a definition list. |
em | This element is used to indicate emphasis. #Browsers typically renders enclosed text in italic. |
fieldset | Groups related form controls. |
font | (deprecated) This element is used to change the size, color and face of the enclosed text. |
form | This element defines an interactive form. |
h1 | The elements H1 through H6 are used to define header levels within a document. # H1 element is the most significant header and H6 is the least significant. |
h2 | The elements H1 through H6 are used to define header levels within a document. # H1 element is the most significant header and H6 is the least significant. |
h3 | The elements H1 through H6 are used to define header levels within a document. # H1 element is the most significant header and H6 is the least significant. |
h4 | The elements H1 through H6 are used to define header levels within a document. # H1 element is the most significant header and H6 is the least significant. |
h5 | The elements H1 through H6 are used to define header levels within a document. # H1 element is the most significant header and H6 is the least significant. |
h6 | The elements H1 through H6 are used to define header levels within a document. # H1 element is the most significant header and H6 is the least significant. |
hr | Draws a horizontal line. |
i | This element suggests that enclosed text shall be rendered as italic text. |
iframe | This element defines an inline frame for the inclusion of other HTML documents. |
img | This element specifies an inline image to be drawn in the place. |
input | This element defines a form control for the user to enter input. |
isindex | (deprecated) Indicates that the document has an associated keyword index that can be searched. |
kbd | This element denotes text to be entered by the user. #Browsers will typically render text as monospaced. |
label | This element associates a label with a form control. |
map | This element specifies a client-side image map that may be associated with another elements like: IMG, OBJECT, or INPUT. |
menu | (deprecated) This element was designed to be used for creating multicolumn directory lists. |
noframes | This element contains content that should only be rendered by the browser when frames are not displayed. |
noscript | This element provides alternate content for a client-side script that was not executed. |
object | This element is used to include objects such as images, audio, videos, Java applets, and Flash animations. |
ol | This element defines an ordered list. |
p | This element defines a paragraph of text. |
param | This element provides parameters for the $'object' and $'applet' elements. |
pre | This element shows preformatted text as it is included, with exactly specified whitespace, blank lines and such. |
q | This element is used for short, inline quotations. |
s | (deprecated) Render strike-through style text. |
samp | This element's purpose is to identify a sample of characters that form the output or result of some process. |
script | Defines a script (javascript, vbscript ....) which may be used within a document. A script contains code which is executable.# You may also include a version number to precisely inform the browser the support you need for the script. |
select | This element defines a form control for the selection of options. It is is most useful within a FORM. |
small | This element suggests that the enclosed text must be rendered in a smaller font. |
span | This element is a generic inline container. |
strike | (deprecated) Render strike-through style text. |
strong | The STRONG element gives strong emphasis to its contents. Browsers typically renders enclosed text in bold. |
sub | This element is used for subscripts. |
sup | This element is used for superscripts. |
table | The HTML table model allows you to arrange text, images, links, forms, form fields, other tables, etc. into rows and columns of cells. |
textarea | This element is used in forms to get multiple lines of text from the user. |
tt | This element suggests that the text should be rendered as teletype or monospaced text. |
u | (deprecated) This element suggests that the text should be rendered as underlined text. |
ul | This element defines an unordered list. |
var | This element is used to markup variables or program arguments. Browsers will typically render enclosed text as italic type. |
The applet element can be contained in the following element(s):
Elements | Description |
---|---|
a | The A element denotes an anchor; a hypertext link or the destination of a link. |
abbr | This element allows authors to clearly indicate a sequence of characters that define an abbreviation for a word. |
acronym | Indicates an acronym abbreviation. |
address | ADDRESS is used to supply contact information for a web document. |
applet | (deprecated) This element is used to embed Java applets. |
b | This element renders the text betweeen the start and end tag in bold. |
bdo | This element overrides the bidirectional algorithm for the enclosed text. |
big | The big element is a text formatting control that increments the enclosed text by one size. |
blockquote | This element is used to format the text as a block quote, which means the right and left margins are indented from the text before and after the quote. |
body | The <BODY> tag contains the body of the document. It must come after the </$'head'> (if a header is specified). # Everything between the <BODY> and </BODY> is considered part of the document body. # It is the part of the document that is visible to the user. |
button | This element defines a submit button, reset button, or push button. |
caption | The CAPTION element's text should describe the nature of the table. # The CAPTION element is only permitted immediately after the $'table' start tag. |
center | (deprecated) This element defines a block whose contents are centered horizontally on visual browsers. |
cite | This element is used to markup citations, such as titles of magazines or newspapers, ship names, references to other sources, and quotation attributions. |
code | This element shows text that is intended to be shown in a monospaced font. #This is useful for programming code. |
dd | This element provides the definition of a term in a definition list. |
del | This element is used to markup sections of the document that have been deleted with respect to a different version of a document. |
dfn | This element denotes the defining instance of a term. #Visual browsers typically render enclosed text as italic. |
div | This element offer a generic mechanism for adding structure to documents. # The <DIV> tag is used to divide a document up into artificial sections such as chapters, sections, appendix and so on. |
dt | This element defines a term in a definition list. |
em | This element is used to indicate emphasis. #Browsers typically renders enclosed text in italic. |
fieldset | Groups related form controls. |
font | (deprecated) This element is used to change the size, color and face of the enclosed text. |
form | This element defines an interactive form. |
h1 | The elements H1 through H6 are used to define header levels within a document. # H1 element is the most significant header and H6 is the least significant. |
h2 | The elements H1 through H6 are used to define header levels within a document. # H1 element is the most significant header and H6 is the least significant. |
h3 | The elements H1 through H6 are used to define header levels within a document. # H1 element is the most significant header and H6 is the least significant. |
h4 | The elements H1 through H6 are used to define header levels within a document. # H1 element is the most significant header and H6 is the least significant. |
h5 | The elements H1 through H6 are used to define header levels within a document. # H1 element is the most significant header and H6 is the least significant. |
h6 | The elements H1 through H6 are used to define header levels within a document. # H1 element is the most significant header and H6 is the least significant. |
i | This element suggests that enclosed text shall be rendered as italic text. |
iframe | This element defines an inline frame for the inclusion of other HTML documents. |
ins | This element is used to markup sections of the document that have been inserted with respect to a different version of a document. |
kbd | This element denotes text to be entered by the user. #Browsers will typically render text as monospaced. |
label | This element associates a label with a form control. |
legend | This element is used to provide the caption text for grouped form controls and text contained in a fieldset. |
li | This element defines a list item. |
noscript | This element provides alternate content for a client-side script that was not executed. |
object | This element is used to include objects such as images, audio, videos, Java applets, and Flash animations. |
p | This element defines a paragraph of text. |
q | This element is used for short, inline quotations. |
s | (deprecated) Render strike-through style text. |
samp | This element's purpose is to identify a sample of characters that form the output or result of some process. |
small | This element suggests that the enclosed text must be rendered in a smaller font. |
span | This element is a generic inline container. |
strike | (deprecated) Render strike-through style text. |
strong | The STRONG element gives strong emphasis to its contents. Browsers typically renders enclosed text in bold. |
sub | This element is used for subscripts. |
sup | This element is used for superscripts. |
td | This element defines a data cell in a table. |
th | This element defines a header cell in a table. |
tt | This element suggests that the text should be rendered as teletype or monospaced text. |
u | (deprecated) This element suggests that the text should be rendered as underlined text. |
var | This element is used to markup variables or program arguments. Browsers will typically render enclosed text as italic type. |
© 2010 by Finnesand Data.
All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the
correctness in the pages or source codes.
The risk of using this web-site pages or any program
codes from this website is entirely at the individual user.