XML tags are case-sensitive. Tags are most important part in XML. XML tags are the foundation of tags. They can use to insert comments, declare setting required for parsing the environment, and to insert special instructions.
It is categorize as follows
The starting of every non-empty XML element is marked by start-tag.
Here <Employee> is Starting tag of an element.
Every element that has start tag should end with end-tag.
Here </Employee> is end tag of element and use slash ("/") before name of element.
The text that present in between start-tag and end-tag is called content. An element which have no content is called empty.
It is represented by two ways:-
Start-tag immediately followed by end-tag:
Complete empty-element tag:
Empty-element tags are used for any element which has no content.