+

Search Tips   |   Advanced Search

Create a style element tag

The style element tag is used to reference a style sheet component selected as the default style sheet in an authoring template, or a style sheet component referenced within a site area or content item using a component reference.

To directly reference a specific style sheet component, use a component tag.

The format of a style element tag:

    [StyleElement source=" " name=" " start=" " end=" " ]

To create a style element tag:

  1. Click Insert a Tag from a presentation template or element design field. The Tag Helper dialog opens.

  2. Select Style sheet as the tag type.

  3. Select a source type. This is added to the tag as the source=" " parameter:

      Template
      This option uses the style sheet specified in the authoring template of the current item. We do not specify a name when using template as the source. To use this option, we must have selected a default style sheet in the related authoring template.

      Path
      This option uses the first style sheet element matching the name, specified in the name parameter, from either the current site area or content item in that order. To add a style sheet to a site area or content item, use a component reference element and select a style sheet component as the component reference.

    1. If a source type of "path" is selected, we must also select a content item or site area and then select the component reference element used to reference the stylesheet.

  4. Click OK to add the tag to your design.


What to do next

Once we have added the tag to the design, we can also add the following parameters to the tag:

Tag parameters Details
start=" "

end=" "

The start and end attributes are used to wrap the data returned by a tag within other tags, such as HTML. These attributes are not mandatory.


Parent Create web content tags