A JSP file that uses a tag library must declare the tag library first. The tag library is defined using the taglib directive - Which of the following specifies the correct purpose of prefix attribute. Select the one correct answer.

  1. A. The prefix defines the name of the tag that may be used for a tag library

  2. B. The prefix attribute defines the location of the tag library descriptor file.

  3. C. The prefix attribute should refer to the short name attribute of the tag library file that is defined by the uri attribute of taglib directive.

  4. D. The prefix attribute is used in front of a tagname of a tag defined within the tag library.


Correct Option: D

Find more quizzes: