# Editing Attributes Through the Attributes Menu

The Attributes menu lists all attributes that can be associated with the selected element. It can be used to create an attribute, change the value of an existing attribute, or delete an attribute.

To edit an attribute:

1. Select the entire element with the mouse, or by pressing the `Esc` key on Unix platforms or `F2` key on Windows platforms.

2. Once the element is selected, choose the attribute to be edited from the Attributes menu.

3. Amaya acts according to the chosen attribute:
   - For boolean attributes (such as `ismap` for an image), the command is finished. Choosing that attribute in the menu removes the attribute from the selected element if it is present, or adds it if not.

   - For attributes with a limited set of values (such as `align` for a paragraph or a heading), Amaya displays a dialog containing a menu of the available values and three buttons.

     - To create the attribute or change its value, choose the desired value from the menu and click the Apply button.

     - To remove that attribute, click the Delete button.

     - For attributes with a free value (such as `href` for an anchor), a dialog opens so you can edit the attribute value or terminate the command with the Apply button. To remove the attribute, click the Delete button.

## See also:

- Working with Attributes
- Copying Attributes
- Editing Attributes in the Structure View