Java Applet In HTML
Applet Tag is used to Embed a Java applet in HTML document. But it's not supported in HTML5. It's provided in HTML4, but now in HTML5 it is deprecated. In other words it is a specific tag which is used to embed some webpages or scripts to make the site OR its content dynamic.
However, you can use other HTML Tags Instead of Applet HTML elements are cited below..
HTML Applet Alteraatives.
<Object> <!-- To embed an object -->
<video> <!-- To embed a Video Media File -->
<audio> <!-- To embed a Audio Media File -->
<img> <!-- To embed a Graphic such as images -->
<iframe> <!-- To embed a document is better to use iframe -->
Syntax And Example of Applet Tag
<applet code="JavaName.class"
width="350"
height="350"
>
</applet>
Applet Tag Alternatives
The alternative of HTML Applet tag is an object tag. The <object> is used to define an embed within the HTML pages. You also can choose this element to embed media files such as ( audio, video, Java applets, PDF, and Flash) in your HTML document. Alternative to an "Object Tag" is <iframe></iframe>
Are the Java applets still used???
No. Applet is no more after March 2019. So you should use other HTML5's element to embed your external sciripts.
HTML Tags
- Comment
- A
- Abbr
- Acronym
- Address
- Applet
- Article
- Aside
- Audio
- B
- Base
- Basefont
- Bdi
- Bdo
- Big
- Blink
- Blockquote
- Body
- Br
- Button
- Canvas
- Caption
- Center
- Cite
- Code
- Col
- Colgroup
- Datalist
- Dd
- Del
- Details
- Dfn
- Dialog
- Dir
- Div
- Dl
- Dt
- em
- Embed
- Fieldset
- Figcaption
- Figure
- Font
- Footer
- Form
- Frame
- Frameset
- H1 - H6
- Head
- Header
- Hr
- Html
- I
- Iframe
- Img
- Input
- Ins
- Kbd
- Keygen
- Label
- Legend
- Li
- Link
- Main
- Map
- Mark
- Menu
- Menuitem
- Meta
- Meter
- Nav
- Noframes
- Noscript
- Object
- Ol
- Optgroup
- Option
- Output
- P
- Param
- Pre
- Progress
- Q
- Rp
- Rt
- Ruby
- S
- Samp
- Section
- Select
- Small
- Source
- Span
- Strike
- Strong
- Style
- Sub
- Summary
- Sup
- Table
- Tbody
- Td
- Tfoot
- Th
- Thead
- Time
- Title
- Tr
- Track
- Tt
- U
- Ul
- Var
- Video
- Wbr
- Script
0 Comments