Example 3     <<      >>       intro       contents     

The name in an element's end-tag must match the element type in the start-tag. Names are case-sensitive

  Well-formed documents   HOME     

The end tag </book> matches the start tag <book> :

               <book>This is a book</book>
               
            

This well formed document contains 4 different elements <list>, <item>, <ITEM> and <Item>:

               <list>
               <item>Car</item>
               <ITEM>Plane</ITEM>
               <Item>Train</Item>
               </list>
               
            

  Documents with errors   HOME     

<item> - </itm> and <item> - </ITEM> does not match:

               <list>
               <item>Car</itm>
               <item>Plane</ITEM>
               <item>Train</item> 
               <list>