A tag also can have one or more attributes. An attribute contains additional information about a tag's operation. The attribute has a name, which may have a value or keyword assigned to it.
In the following example, the attribute res= specifies a window identifier.
:h1 res=001.Save the Manatee
In this case, 001 is the assigned value. The value assigned to a res= attribute must be unique for each heading tag. This value also will be the identifier for linking to the heading from elsewhere in the information. The concept of linking is described in Hypertext Links.
Notice that the period follows the attribute, not the heading tag. The period always follows the last attribute in the tag.
You can specify many attributes in one tag, and they can extend over several lines. However, you cannot split an attribute. For example, you cannot put the res= attribute of the heading tag on one line, and its value, 001, on the next line.
Some attributes are optional and have a default (an assumed value) if they are not included with the tag; other attributes are required. Tag attributes can be specified in any order.
As mentioned, some attributes are required. For example, if you are creating a help library, the res= attribute of a heading tag is required as a window identifier (see Window Identifiers).
An attribute also can have a keyword associated with it. For example, an attribute of the :color. tag is fc= (foreground color), which is used to specify the color of the text. Its value can be equal to any of the following keywords:
Not all attributes have values or keywords. For example, if you want a simple list with no blank lines between the list items, add the compact attribute to the simple-list tag (:sl.). In the following example, notice the compact attribute stands by itself:
:sl compact.:li.List item 1 :li.List item 2 :li.List item 3 :esl.