Multiple choice

Observe the following statement (commas are used to separate the parts that are not a part of the standard code): <APPLET, class= no error , height= 200 , width= 300 ></applet> Which part has an error?

  1. Part 1

  2. Part 2

  3. Part 3

  4. No Error

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

Part 2 (class=" no error") contains a syntax error - there should be no leading space before the class name. In HTML/Java applet tags, attribute values should not have leading/trailing spaces unless intended. The correct syntax would be class="noerror" or class="MyApplet.class".