Asked by Harry Singh on Jun 05, 2024

verifed

Verified

When you place an applet in an HTML document,you give the name of the _____________ file for the applet.

A) .java
B) .class
C) both A & B
D) none of the above

HTML Document

A file containing Hypertext Markup Language (HTML) code, which is used to create and structure content on the World Wide Web.

Applet

A small application that is typically embedded in a web page and run in a web browser, now deprecated in Java.

  • Understand the method of inserting Java applets into HTML pages.
  • Demonstrate the practical integration of Java applets within web pages.
verifed

Verified Answer

ZK
Zybrea KnightJun 06, 2024
Final Answer :
B
Explanation :
When you place an applet in an HTML document, you give the name of the .class file for the applet. The .class file is the compiled version of your Java program, which can be embedded in an HTML page using the tag. Therefore, only option B is the correct answer.