- 58 -
Both are acceptable and considered well formed.
Attributes
Attributes
are usually small, descriptive bits of information used for describing elements.
Again, if you are
familiar with HTML, then the concept of attributes is also familiar. For
example,
an attribute of the
element would be
align = "center"
. If you’re
not familiar with HTML, then think of attributes in their literal sense: as adjectives used to
describe nouns (elements).
You can use attributes in several ways to further describe your data. They are contained
within the start tag of an element after the element name (remember the rule from Table
3.1, “no spaces allowed in element names”?—now you know why) and are followed by
an = sign, which is followed by the value of the attribute in quotes (“”). Table 3.2
describes some syntax and interpretations.