Multiple choice technology web technology

Which of the following is a valid declaration of a Tag Library in a Deployment Descriptor?

  1. <taglib> <uri>http://www.javabeat.net/studyKit&lt;/uri> <location>/studyKit.tld</location> </taglib>

  2. <taglib> <uri>http://www.javabeat.net/studyKit&lt;uri> <location>/studyKit.tld</location> </taglib>

  3. <taglib> <taglib-uri>http://www.javabeat.net/studyKit&lt;/taglib-uri> <taglib-location>/studyKit.tld</taglib-location> </taglib>

  4. <taglib> <uri>http://www.javabeat.net/studyKit&lt;/uri> <path>/studyKit.tld</path> </taglib>

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

The correct DD syntax uses and elements within . Options A and D use incorrect element names (uri/path instead of taglib-uri/taglib-location). Option B has malformed XML.