diff --git a/xml.html b/xml.html index fbb5723..e97df5b 100755 --- a/xml.html +++ b/xml.html @@ -120,16 +120,16 @@ mark{display:inline}
Elements can have attributes, which are name-value pairs. Attributes are listed within the start tag of an element and separated by whitespace. Attribute names can not be repeated within an element. Attribute values must be quoted. You may use either single or double quotes. -
<foo lang='en'> ①
- <bar lang="fr"></bar> ②
+<foo lang='en'> ①
+ <bar id='papayawhip' lang="fr"></bar> ②
</foo>
- The
foo element has one attribute, named lang. The value of its lang attribute is en.
- - The
bar element has one attribute, named lang. The value of its lang attribute is fr. This doesn’t conflict with the foo element in any way. Each element has its own set of attributes.
+ - The
bar element has two attributes, named id and lang. The value of its lang attribute is fr. This doesn’t conflict with the foo element in any way. Each element has its own set of attributes.
-If an element has more than one attribute, the ordering of the attributes is not significant. An element’s attributes form an unordered set of keys and values, like a Python dictionary.
+
If an element has more than one attribute, the ordering of the attributes is not significant. An element’s attributes form an unordered set of keys and values, like a Python dictionary. There is no limit to the number of attributes you can define on each element.
Elements can have text content.