How to write attributes

  • An attribute is composed of its name and value.

  • Attributes are inserted in the start tag which may be empty.

  • Attribute value is always in quotes or doublequotes add separated by a = from the attribute name.

  • For attribute names the same rules as for element names hold.

  • In one element, there can never be two or more attributes with same name.

  • If namespaces are used, neither two attributes belonging to the same namespace are allowed.