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
- <menu>, <root>
Every element that has a start tag should end with an end tag.
Example
- </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
- <empty> & <empty></empty>

XML Rules
- All XML must have a root element.
Example
- <roots>
- <name>Shresth Jaiswal</ name>
- <date of birth>2nd October 1999</ date of birth>
- </root>
- All the tags in XML must be closed.
Example
- </root>
- All tags must be properly nested.
Example
Wrong:
Right:- <P><Q>Hello</P></Q>
- <s><t>Hello</s></t>
- <P><Q>Hello</Q></P>
- <s><t>Hello</t></s>
- All the names of XML tags have strict limits.
Example
Wrong:
Right:- <01_author>
- <”author”>
- <author>
- <_author>
- Tags in XML are case-sensitive.
Example
Wrong:
Right:- <root>Shresth</Root>
- <xml>first page</Xml>
- <root>Shresth</root>
- <Xml>first page</Xml>
- In XML tags, names cannot contain spaces.
Example
- </NAME>
- In XML, attribute values must appear within quotes.
Example
Wrong
- <note date= 18/05/2015>
- </note>
- Right
- <note date= ‘’18/05/2015”>
- </note>
Special meaning 


Shresthi JaiswalPosted Sep 28, 2016, 5:58 AM EDT
Very nice
Bhuvanesh MohankumarPosted May 4, 2016, 10:46 AM EDT
Good one...
Sujeet SumanPosted Sep 17, 2015, 5:50 AM EDT
Good one.........
Ayush JaiswalPosted Jun 5, 2015, 1:08 AM EDT
Keep it up
Santhakumar MunuswamyPosted May 30, 2015, 8:48 AM EDT
Thanks for nice one
Sourabh SomaniTOP 100Posted May 19, 2015, 6:54 PM EDT
Good keep it up :)
Abhishek JaiswalPosted May 18, 2015, 10:03 PM EDT
Keep Going!! :)
Gowtham RajamanickamTOP 100Posted May 18, 2015, 8:40 AM EDT
informative..
Gopi ChandPosted May 18, 2015, 7:08 AM EDT
Bad impression Shresth :)
Sandeep SinghPosted May 18, 2015, 4:09 AM EDT
One more thing.. Image is copied from another site that is really bad. You can create your own image. Its Simple. Image copied from http://www.webdesign.org/html-for-beginners-tags-attributes-and-elements-part-2.22307.html
Sandeep SinghPosted May 18, 2015, 4:05 AM EDT
Misleading Image.. <HTML> for Beginners?? This is not HTML. Please correct it. :-)