>> English << | česky | Español | Português | Türkçe | Nederlands | По-русски | Deutsch | Français | Italiano | 中文 | ქართული | Magyar | PolskiZVON > Tutorials > XML Tutorial
>> Example 5 << | Prev | Next | Contents


The end of every element that begins with a start-tag must be marked by an end-tag containing a name that echoes the element's type as given in the start-tag. The text between the start-tag and end-tag is called the element's content. An element without content can take a special form: <name/> . The slash before > substitutes the end tag.

Well-formed documents

Each element has either the end tag or takes the special form. There is no difference between <AAA></AAA> and <AAA/> in XML.:







Documents with errorsTop

Missing slash is a very common error:


There are  <color>yellow<color> and <color>red</color> apples.