Let us learn something about one of the most important parts of XML, XML tags.

Start tag

The start of every non-empty XML element is marked by a start tag.

Example

  1. <menu>, <root>
End tag

Every element that has a start tag should end with an end tag.

Example
  1. </menu>, </root>



Every Start-tag must have an End-tag

In XML, every element requires a start-tag and an end-tag.

Example




Empty element tag

The text that appears between the start tag and the end tag is known as the content. An element that has no content is an empty element. All empty elements are also known as standalone tags.

Example
  1. <empty> & <empty></empty>


XML Rules

Special meaning