Learn and practice Aptitude questions and answers with explanation for interview, competitive exam (Pariksha Corner )

Friday, January 24, 2020

Attributes in XML indicate

Attributes in XML indicate
Aa way of attaching properties to elements
Bthe elements
Cchild nodes
Ddocuments.

Answer : a way of attaching properties to elements

Explanation:

Attributes are part of the XML elements. An element can have multiple unique attributes. Attribute gives more information about XML elements. To be more precise, they define properties of elements. An XML attribute is always a name-value pair.
Syntax
An XML attribute has following syntax:
<element-name attribute1="" attribute2="">
....content..
< /element-name>
example:
<garden>
<plants category="flowers"/>
<plants category="shrubs">
</plants>
</garden>
so Attribute is a way of attaching properties to elements

Akilesh Kharvi
answered Dec 8 '2016 at 21:26

All Comments

Post your answers here:

Post

Post your comments here:

Post

Categories