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 Apps / HTML code is not creat...
Power Apps
Answered

HTML code is not creating the Table

(0) ShareShare
ReportReport
Posted on by 496

Hi Friends ,

 

I'm just copied a HTML code from W3School and pasted on the HtmlText control .. here is the html 

 

"<!DOCTYPE html>
<html>
<style>
table, th, td {
border:1px solid black;
}
</style>
<body>

<h2>A basic HTML table</h2>

<table style='width:50%'>
<tr>
<th>Company</th>
<th>Contact</th>
<th>Country</th>
</tr>
<tr>
<td>Alfreds Futterkiste</td>
<td>Maria Anders</td>
<td>Germany</td>
</tr>
<tr>
<td>Centro comercial Moctezuma</td>
<td>Francisco Chang</td>
<td>Mexico</td>
</tr>
</table>

<p>To undestand the example better, we have added borders to the table.</p>

</body>
</html>"

 

But i get the out put without the table as below 

 

ajithd6368_0-1660541692601.png

 

any idea why table lines are not appearing..

 

rgds

AD 

Categories:
  • Verified answer
    Gochix Profile Picture
    1,937 Moderator on at
    "<!DOCTYPE html>
    <html>
    <style>
    table, th, td {
    border:1px solid black;
    }
    </style>
    <body>
    
    <h2>A basic HTML table</h2>
    
    <table style='width:50%' border='1'>
    <tr>
    <th>Company</th>
    <th>Contact</th>
    <th>Country</th>
    </tr>
    <tr>
    <td>Alfreds Futterkiste</td>
    <td>Maria Anders</td>
    <td>Germany</td>
    </tr>
    <tr>
    <td>Centro comercial Moctezuma</td>
    <td>Francisco Chang</td>
    <td>Mexico</td>
    </tr>
    </table>
    
    <p>To undestand the example better, we have added borders to the table.</p>
    
    </body>
    </html>"
  • ajithd6368 Profile Picture
    496 on at

    Thanks Gochix 

     

    its worked with

     

    <table style='width:50%' border='1'>

     

    rgds

    AD

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard