Case 2-2
Rosalind wants to add attribute declarations to her DTD, and she turns to you for information about the possible attribute types.
-You help Rosalind write the declaration of an attribute named "credits" of an element named "course." This optional attribute should contain character data, and a value of 4 should be used if an attribute value is not specified. Which of the following is an appropriate declaration of this attribute?
A) <!ATTLIST credits course CDATA default="4">
B) <!ATTLIST course credits CDATA default="4">
C) <!ATTLIST credits course CDATA "4">
D) <!ATTLIST course credits CDATA "4">
Correct Answer:
Verified
Q62: _ content allows an element to contain
Q63: Case 2-1
Casey is using XML to store
Q64: Case 2-2
Rosalind wants to add attribute declarations
Q67: A(n)_ content model is a list of
Q68: DTDs use more general numbering with a(n)_
Q70: Case 2-1
Casey is using XML to store
Q71: Rosalind wants to add attribute declarations to
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents