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.
Note: To directly reference a specific style sheet component,
use a component tag.
This is the format of a style element tag:
[StyleElement source=" " name=" " start=" " end=" " ]
To create a style element tag:
- Click Insert a Tag from a presentation
template or element design field. The Tag Helper dialog opens.
- Select Style sheet as the tag type.
- 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. You do not specify a name when using template
as the source. To use this option, you 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, you need to use a component reference element and
select a style sheet component as the component reference.
- If a source type of "path" is selected, you must also
select a content item or site area and then select the component reference
element that is used to reference the stylesheet.
- Click OK to add the tag to your
design.
Once you have added the tag to your design, you can also
add the following parameters to the tag:
Table 1. Additional tag
parametersTag 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. |