Mega Code Archive

 
Categories / XML Tutorial / Introduction
 

Attributes are simple namevalue pairs associated with an element

You can't have more than one attribute with the same name on an element. Order of attributes is not relevant. They are attached to the start-tag, but not to the end-tag.  <name nickname="007">      <first>Bond</first>      <last>James</last>  </name>  Attributes must have values. Those values must be in quotes.  Either single quotes or double quotes are fine, but they have to match.  <input checked='true'> or <input checked="true">