# Submission element with replace="embedHTML"

This page demonstrates the use of a XForms submission element with replace embedHTML

## Example

Load HTML 5 audio element as part from an external file
Load Plain HTML as part from an external file
Load full external HTML file

## XForms Markup

    <xf:submission id="s-embedHTML-audio" replace="embedHTML" targetid="mountpoint-audio" resource="resources/htmlToEmbed.html#HTMLToEmbed-audio" method="get"></xf:submission>

    <xf:submission id="s-embedHTML-plain" replace="embedHTML" targetid="mountpoint-plain" resource="resources/htmlToEmbed.html#HTMLToEmbed-plain" method="get"></xf:submission>

    <xf:submission id="s-embedHTML-full" replace="embedHTML" targetid="mountpoint-full" resource="resources/htmlToEmbed.html" method="get"></xf:submission>

    <xf:trigger id="trigger1">
        <xf:label>Load HTML 5 audio element as part from an external file</xf:label>
        <xf:send submission="s-embedHTML-audio"></xf:send>
    </xf:trigger>

    <div id="mountpoint-audio"></div>

    <xf:trigger id="trigger2">
        <xf:label>Load Plain HTML as part from an external file</xf:label>
        <xf:send submission="s-embedHTML-plain"></xf:send>
    </xf:trigger>

    <div id="mountpoint-plain"></div>

    <xf:trigger id="trigger3">
        <xf:label>Load full external HTML file</xf:label>
        <xf:send submission="s-embedHTML-full"></xf:send>
    </xf:trigger>

    <div id="mountpoint-full"></div>