Multiple choice

What tags are mandatory when creating HTML to display an applet?

  1. name, height, width

  2. code, name

  3. codebase, height, width

  4. code, height, width

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The HTML tag requires the 'code' attribute (specifying the main class file), and 'height' and 'width' attributes to define the display area. The 'codebase' attribute is optional and specifies where to find the class files - it defaults to the current directory if omitted.