Creating Tag Groups

In your content in the XML Editor, you can group selected items within one of the following types of block styles: blockquote, div, fieldset, or form. These styles let you create block-level content in a unique "container" for different purposes.

How to Create a Tag Group

  1. Open the document or topic.
  2. Select one or more blocks of content (such as paragraphs).
  3. Do one of the following, depending on the part of the user interface you are using:
    • Ribbon Select Home > .
    • Keyboard Shortcut Place your cursor somewhere in a block of content, but not at the very beginning of it, and then press the TAB key. (If you place your cursor at the very beginning of the content and press TAB, the first line will be indented instead.)

    The Create Group dialog opens.

  4. Select a tag from the list.
    • blockquote The <blockquote> tag is typically used to format text used as a quotation. Usually the <blockquote> tag has margin indentations to set it apart from the rest of the content in the topic.

      Example The following image shows four p tags grouped into a <blockquote> tag in the XML Editor. The structure bars on the left side of the content provide a visual representation of the grouping.

    • div The <div> tag is used to define logical divisions in your topics or hold objects that can be “floated” (such as text boxes). You can put content using other tags into the same <div> tag, then use style properties to change the look of that entire “container.” One common use of a <div> tag is to indent lots of content. For example, you might have a section of content containing four paragraphs, a numbered list, and an image. Rather than creating special style classes for all of those different elements with an indentation setting (e.g., margin-left or padding-left) on each, you can place your indentation setting on the <div> tag. That way, any content contained within that <div> tag will be indented accordingly.

      Example The following image shows two <div> tags. Each of these tags represents a logical grouping, containing a heading tag and an unordered list with multiple li tags. The structure bars on the left side of the content provide a visual representation of the grouping.

    • fieldset The <fieldset> tag is used to combine multiple tags into a group, drawing a box around all of the content.

      Example The following image shows a <fieldset> tag that contains a heading tag and several p tags. The structure bars on the left side of the content provide a visual representation of the grouping. To see the actual box around the content, you need to preview or generate the topic.

    • form The <form> tag is used to create a form for user input. After you create the group with the <form> tag, you can open the topic in the Internal Text Editor to supply the necessary code for the form fields.

      Example The following image shows multiple <p> tags grouped into a form tag in the XML Editor. We also grouped the content into a <fieldset> tag, in order to place the form fields in a box. The structure bars on the left side of the content provide a visual representation of the grouping.

  5. Click OK.

Note If you are attempting to simply indent content, see Indenting Paragraphs or Creating Tabs.

Note This feature is not supported for MadCap Lingo review package (LIREV) files.