Open In App

XML | Tags

XML tags are the important features of XML document. It is similar to HTML but XML is more flexible then HTML. It allows to create new tags (user defined tags). The first element of XML document is called root element. The simple XML document contain opening tag and closing tag. The XML tags are case sensitive i.e. <root> and <Root> both tags are different. The XML tags are used to define the scope of elements in XML document.
Property of XML Tags: There are many property of XML tags which are discussed below: 
 




<root>
    <name>GeeksforGeeks</name>
    <address>
        <sector>142</sector>
        <location>Noida</location>
    </address>
</root>




<Name>GeeksforGeeks
<address>Noida




<Name>GeeksforGeeks</Name>
<address>Noida</address>




<Name>Case sensitive</Name>
<name>name and Name are different tag</name>




<name> </name>
<address/>




<root>
    <name>GeeksforGeeks</name>
    <address>
        <add>Sector 142 Noida</add>
        <pin>201302</pin>
        <country>India</country>
    </address>
</root>

 


Article Tags :