6.4. The Attributes tab

The Attributes tab shows all attributes and attribute values of the current element.

Figure 6-2. The attributes tab

The attributes of an element occur in the left column in the Attributes tab. If a value has been specified for an attribute, the value will occur in the right column next to the attribute name.

Editing an attribute value

  1. Position the insertion cursor inside the element in question.

  2. Choose Element->Edit Attributes to display the Attributes tab of the element manager or click on the title of the Attributes tab in the element manager.

  3. Click on the attribute name or on the corresponding value field in the Attributes tab of the element manager.

  4. The attribute value field will become active. Depending on the attribute type, the field for the attribute value may become a simple entry field or it may change to a drop-down list for attributes with a limited number of possible values.

  5. Enter the attribute value in the entry field or select the desired value from the drop-down list.

  6. Press the Return key to accept the value that you have entered.

The names of required attributes (i.e. attributes that must be provided according to the DTD) are shown in red if no attribute value has been specified. They will be shown in green after a value has been entered.

Attribute values can be deleted by using the Delete button in the Attributes tab of the element manager or by right-clicking on the attribute in the Attributes tab and selecting Delete current value from the context menu.

Deleting an attribute value

  1. Position the insertion cursor inside the element in question.

  2. Choose Element->Edit Attributes to display the Attributes tab of the element manager or click on the title of the Attributes tab in the element manager.

  3. Click on the attribute name or on the corresponding value field in the Attributes tab of the element manager.The attribute value field will become active.

  4. Click on the Delete button at the bottom of the element manager to delete the attribute value.

Deleting an attribute value is different from setting a value to an empty string. In the first case, the attribute specification is removed from the current element. In the second case, the attribute specification remains and the attribute value will be empty.