Attributes

The Add Attribute option allows you to add attributes to an element. Attributes are used to specify additional information about the element. It may help to think of attributes as a means of specializing generic elements to fit your needs. An attribute for an element appears within the opening tag. If there are multiple values an attribute may have, then the value of the attribute must be specified.

If more than one attribute exists for an element, a +/- button appears allowing you to expand or collapse the list of attributes.

To access additional items from the Attributes node, right-click and select one of the following:
  • Add Attribute: adds additional attributes to element.
    • Sublist dependent on particular element
    Note: The Add Attribute command is also available when multiple elements of the same type are selected. In this scenario, the selected attribute is added with an empty value to all elements.

    For more information on selecting multiple elements, refer to Selecting Multiple Elements/Attributes/Nodes.

  • Delete: deletes the Attributes node.
    Note: The Delete command is also available when multiple elements of the same type are selected.
  • Copy XPath Location: used for troubleshooting, this allows a user to send the XPath location of the node to another user.
  • Expand: expands the Attributes node.
  • Collapse: collapses the Attributes node.