web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / add text after HTML ta...
Power Automate
Suggested Answer

add text after HTML table in an email

(2) ShareShare
ReportReport
Posted on by 10
The text that I added after a HTML table in an email body becomes part of the last row of the HTML table. 
How can I separate the text from the HTML table?
 
 
Categories:
I have the same question (0)
  • Suggested answer
    frago Profile Picture
    226 on at
    Hi @AX-06031421-0
     
     
    This happens because the HTML table is not properly closed, or the text is still inside a <td> / <tr> tag. As a result, email clients treat your text as part of the last table row.
    How to fix it:
    Make sure the table is correctly closed:
    </table>
     
    Add the text after the closing </table> tag.
    Wrap the text in a block element like <p> or <div>.
    Example (correct):
     
    <table>
      ...
    </table>
    
    <p>This text will appear below the table.</p>
    ``
     
    Common causes:
    Missing </table>, </tr>, or </td>
    Text placed before the table is fully closed
    Invalid or unbalanced HTML (email clients are very strict)
     
    ------------------------------------------------------------
    If this solved your issue, please mark it as ✅ Accepted Answer.
    If it helped, feel free to give it a 🩷 Like!
     
    Best regards,
    Piotr
     
     
     
  • Haque Profile Picture
    3,653 on at
     
    Could you please post the screenshot for the same?
  • AX-06031421-0 Profile Picture
    10 on at
    Above screen shot is the body of email. The "Best Regards, Alex" is merged into the last row of HTML table. 
  • AX-06031421-0 Profile Picture
    10 on at
    Above screen shot is the code view of the email body. 
  • Suggested answer
    deepakmehta13a Profile Picture
    369 on at

    Hi,

    This happens because your HTML table is not properly closed, so everything after it (like Best Regards, Alex) is treated as part of the last <td>.

    Make sure your table variable (varHTMLTable) ends with proper closing tags:

    </table>

    Then in your email body, explicitly separate content like this:

     
    @{variables('varHTMLTable')}
    <br><br>
    Best Regards,<br>
    Alex
     

    If issue still persists

    Wrap your table and text separately:

    <div>
    @{variables('varHTMLTable')}
    </div>

    <div>
    <br><br>
    Best Regards,<br>
    Alex
    </div>

    Cause:


    • Missing </tr> / </table> OR
    • Table HTML is injected inside a <span> or inline tag (as seen in your code view)

    In your screenshot, the table is inside a <span> → this causes HTML to break and merge content.

    Hope this helps.

    -----------------------------------------------------------------------------------------------------------------------------------------------
     

    If this helps resolve your issue, please consider marking the response as Verified so it can help others facing a similar scenario.

    If you found this helpful, you can also click “Yes” on “Was this reply helpful?” or give it a Like.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard