Tuesday, November 2, 2010

XML Attributes

XML Attributes

XML attributes provide additional information about elements. Attributes are always contained within the start tag of an element.

Atttributes are name-value pairs that are separated by an equals sign(=). They may occur inside start-tags or empty tags, but never inside end-tags.

Attributes must have vales - even if that value is just an empty string (such as "") - and those values must be in quotes.

Either single quotes or double quotes are fine, but they have to match.
<input checked='true'>
<input checked="true">
but you can't use
<input checked="true'>

No comments:

Post a Comment