How to specify the attributes with multiple values?

Options
- < myElement myAttribute="value1" myAttribute="value2"/>
- < myElement myAttribute="value1 value2"/>
- attributes cannot have multiple values
- < myElement myAttribute="value1, value2"/>


CORRECT ANSWER : attributes cannot have multiple values

Discussion Board
Xml attributes

Attributes can have multiple values example


Juliana 05-2-2023 06:00 AM

XML attributes

Attributes can have a multiple values example
COLOR ="Pink">

Juliana 05-2-2023 05:55 AM

Attributes cannot have multiple values

Following things to consider when using attributes:
-attributes cannot contain multiple values (elements can)
-attributes cannot contain tree structures (elements can)
-attributes are not easily expandable (for future changes)

Sapna 02-20-2017 11:56 PM

xml

give me fast answer....

dev soren 02-24-2016 11:44 PM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement