(1) As Erland correctly mentioned, the best course of actions is to use CSS for styling.
Please take a look how to do it correctly in my answer here: html-code-inside-sql
(2) If you still need an embedded styling, please see below. Unfortunately, for no reason this Web site doesn't allow me to paste XQuery code. Sorry, I had to make a screen shot for that reason. Alas, even to embed Image functionality is currently broken here.
If you wish, you can ask the same question on the stackoverflow.com
And I will gladly provide you a full answer.
SQL
DECLARE @xml XML
, @style VARCHAR(100) = 'background: #FFE5B4; font-weight: 800;'
, @tbody NVARCHAR(MAX) =
N'<tbody>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
<tr>
<td>Cell 1</td>
<td>Cell 2</td>
</tr>
</tbody>';
P.S. Please connect with me on LinkedIn or Skype.