Element Attributes

Every element has a set of attributes, which are properties that define the element's characteristics. For each attribute, there is a value, and by changing the value, you can control how Paligo uses the element.

Some common examples of how you can use the element attributes are:

  • Set the width attribute of an imageobject to control its size in the output, for example, width: 50%

  • Set the role attribute of a section to accordion so that the section appears as a collapsible section in the output

  • Set the audience attribute of para to developer so that the paragraph only appears in content aimed at developers.

You can see an element's attributes by selecting the element and then looking at the Element attributes widget in the Editor:

Element attributes

The Element attributes widget shows the attribute values that are currently applied to the element (1).

You can add extra attributes from the Add attribute drop-down (2). If you add an attribute, you need to set its value in the field next to the attribute name in the Element attributes widget (1). You can also use the fields to change any existing attribute values.

There are many different element attributes available.