---
schema_version: "1"
id: 91b68612c592a60f37a177c10353acce1d21072dd5fa0b3068893f4b611244ba
title: ConnectApi.MarkupBeginSegment
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_markup_begin_message_segment.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_markup_begin_message_segment.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 4ace124c9891e0737bfe2e17e22a1ad937f9d3f7d88d31861de6540762c698a6
description: The beginning of rich text markup.
---
# ConnectApi.MarkupBeginSegment

The beginning of rich text markup.

Subclass of [ConnectApi.MessageSegment](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_msg_seg.htm "Message segment.").

<table class="featureTable sort_table" summary="">




          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader vertical-align-top " id="d1076771e46">Property Name</th>

              <th class="featureTableHeader vertical-align-top " id="d1076771e49">Type</th>

              <th class="featureTableHeader vertical-align-top " id="d1076771e52">Description</th>

              <th class="featureTableHeader vertical-align-top " id="d1076771e55">Available Version</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d1076771e46" data-title="Property Name"><samp class="codeph apex_code">altText</samp></td>

              <td class="entry" headers="d1076771e49" data-title="Type">String</td>

              <td class="entry" headers="d1076771e52" data-title="Description"><span class="ph" id="altTextOutput"><a name="altTextOutput"><!-- --></a>Alternative text for the segment, if
                  available.</span></td>

              <td class="entry" headers="d1076771e55" data-title="Available Version">45.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d1076771e46" data-title="Property Name"><samp class="codeph apex_code">htmlTag</samp></td>

              <td class="entry" headers="d1076771e49" data-title="Type">String</td>

              <td class="entry" headers="d1076771e52" data-title="Description"><span class="ph" id="htmlTag"><a name="htmlTag"><!-- --></a>The HTML tag for this markup.</span></td>

              <td class="entry" headers="d1076771e55" data-title="Available Version">35.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d1076771e46" data-title="Property Name"><samp class="codeph apex_code">markupType</samp></td>

              <td class="entry" headers="d1076771e49" data-title="Type"><a class="xref" href="https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/connectAPI_enums.htm#MarkupTypeEnum"><samp class="codeph apex_code">ConnectApi.​MarkupType</samp></a></td>

              <td class="entry" headers="d1076771e52" data-title="Description">Type of rich text markup.<ul class="ul bulletList">
                  <li class="li">
                    <samp class="codeph apex_code">Bold</samp>—Bold tag.
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">Code</samp>—Code tag.
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">Hyperlink</samp>—Hyperlink anchor tag.
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">Italic</samp>—Italic tag.
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">ListItem</samp>—List item tag.
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">OrderedList</samp>—Ordered list tag.
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">Paragraph</samp>—Paragraph tag.
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">Strikethrough</samp>—Strikethrough tag.
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">Underline</samp>—Underline tag.
                  </li>
                  <li class="li">
                    <samp class="codeph apex_code">UnorderedList</samp>—Unordered list tag.
                  </li>
                </ul>
              </td>

              <td class="entry" headers="d1076771e55" data-title="Available Version">35.0</td>

            </tr>

            <tr>
              <td class="entry" headers="d1076771e46" data-title="Property Name"><samp class="codeph apex_code">url</samp></td>

              <td class="entry" headers="d1076771e49" data-title="Type">String</td>

              <td class="entry" headers="d1076771e52" data-title="Description"><span class="ph" id="urlOutput"><a name="urlOutput"><!-- --></a>URL to the segment, if available.</span></td>

              <td class="entry" headers="d1076771e55" data-title="Available Version">45.0</td>

            </tr>

          </tbody>

        </table>