Version-//W3C//DTD XHTML 1.0 Transitional//EN
Elementapplet
Purposeembed small Java program (applet) in document
DescriptionThe applet element embeds a small Java program (an applet) into the document.

Java is a programming language that requires skill in software engineering as well as knowledge of object-oriented concepts and development to use effectively. You can use these sources to learn Java.

Start tagRequired <applet>
Attributes
NameTypeDefaultComment
align( top | middle | bottom | left | right )#IMPLIEDvertical or horizontal alignment
alt CDATA #IMPLIEDtext used for titles; short description
archive CDATA #IMPLIEDcomma-separated archive list
class CDATA #IMPLIEDspace-separated list of classes
code CDATA #IMPLIEDapplet class file
codebase CDATA #IMPLIEDUniform Resource Identifier as per RFC2396; a Uniform Resource Locator (URL) is a URI; optional base URI for applet
height CDATA #REQUIREDnn for pixels or nn% for percentage length; initial height
hspace CDATA #IMPLIEDinteger representing length in pixels; horizontal gutter
idID#IMPLIEDdocument-wide unique id
nameNMTOKEN#IMPLIEDallows applets to find each other
object CDATA #IMPLIEDserialized applet file
style CDATA #IMPLIEDassociated style info; style sheet data
title CDATA #IMPLIEDadvisory title; text used for titles
vspace CDATA #IMPLIEDinteger representing length in pixels; vertical gutter
width CDATA #REQUIREDnn for pixels or nn% for percentage length; initial width
Content( #PCDATA | param | p | h1 | h2 | h3 | h4 | h5 | h6 | div | ul | ol | dl | menu | dir | pre | hr | blockquote | address | center | noframes | isindex | fieldset | table | form | a | br | span | bdo | object | applet | img | map | iframe | tt | i | b | u | s | strike | big | small | font | basefont | em | strong | dfn | code | q | samp | kbd | var | cite | abbr | acronym | sub | sup | input | select | textarea | label | button | noscript | ins | del | script )*
End tagRequired </applet>
Referenced in a abbr acronym address applet b bdo big blockquote body button caption center cite code dd del dfn div dt em fieldset font form h1 h2 h3 h4 h5 h6 i iframe ins kbd label legend li noframes noscript object p q s samp small span strike strong sub sup td th tt u var
Example
SourceAppearance
<applet codebase="http://www.december.com/present/" code="NervousText.class"
width="100" height="60" align="left"><param name="text"
value="Java" /></applet>
search Search · star Market
2023-06-19 · John December · Terms © johndecember.com