XML Multiple choices


Total available count: 49
Subject - Web Development
Subsubject - XML

XML attribute values must always be enclosed in quotes


 

 

 

 



B


Solution:-

The attribute value must be enclosed within double-quotes. The names of XML elements and XML attributes are case-sensitive. It is also possible to have an empty element, which consists of a single tag, with attributes.

XML Attributes Must be Quoted
Attribute values must always be quoted. Either single or double quotes can be used.

For a digital's website, the <digital> element can be written like this:

<digital website="SlightBook">

or like this:

<digital website='SlightBook'>

 




Next 5 multiple choice(s)

1

Which is not the correct name for an XML element?

2

XML elements cannot be empty

3

Is this a "well formed" XML document?
<?xml version="1.0"?>
<note>
<to age=33>Shyam</to>
<from>Krishna</from>
</note>

4

Is this a "well formed" XML document?
<?xml version="1.0"?>
<note>
<to age="33">Krishna</to>
<from>Nellore</from>
</note>

5

XML preserves white spaces

Comments