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?
-
Part 1
-
Part 2
-
Part 3
-
No Error
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".