you should be able to, for example
<table id="mytable" runat="Server">
<tr><td>hello</td></tr>
</table>
<script language="C#" runat="server">
void Page_Load(Object o, EventArgs e)
{
   mytable.Rows[0].Cells[0].Style["color"] = "red";
   mytable.Rows[0].Cells[0].Attributes["hello"] = "world";
}
</script>