Theme table with html
You could render content as table using Theme Table

&lt;?php
$table_element = array(
    '#theme' =&gt; 'table',
    '#header' =&gt; $header,
    '#rows' =&gt; $rows,
    '#empty' =&gt;t('Your table is empty'),
);   
drupal_render($table_element);
?&gt;


Here are some Examples for it:


Examples of theme_table() in Drupal 7
A Drupal theme table example
Drupal for Beginners: How to Create a Table Using theme_table()