- An element name can contain any alphanumeric characters. Allowed
symbols
in names are the hyphen
-
, under-score
_
, period
.
and digits
0-9
- Names are
case sensitive
, Address, address, and ADDRESS are different names. - Start and end tags of an element must be
the same
. - An element, which is a container, can contain
text
or
elements
<?xml version="1.0" encoding="UTF-8"?>
<student>
   <first-name>George</first-name>
   <phone.mobile>(011) 123-4567</phone.mobile>
   <native_language>English</native_language>
   <city />
</student>
Note: XML element name must not start with
.
,
-
,
digit
by Valeri Tandilashvili
4 years ago
XML
XML elements
XML Tutorial
0
Pro tip: use ```triple backticks around text``` to write in code fences