HTML table header coloring

sreejesh

New Member
Joined
Oct 3, 2009
Messages
49
Hi,

I have created a second HTML table and need help in adding color to the first row. Below is the code for the extra table

<html><head></head><body><table border=1 cellpadding=10 cellspacing=0><tr><th></th><th>X</th><th>Y</th><th>Z</th></tr><tr><th>1</th><td align="right">2791</td><td align="right">8011</td><td align="right">9582</td></tr><tr><th>2</th><td align="right">6793</td><td align="right">6863</td><td align="right">4790</td></tr><tr><th>3</th><td align="right">8064</td><td align="right">2626</td><td align="right">3917</td></tr><tr><th>4</th><td align="right">2660</td><td align="right">8776</td><td align="right">6805</td></tr></table></body></html></pre>
X, Y and Z are the first 3 celsl of the 1st row and i need to add some color to them.


Thanks in advance for the help.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

<html><head></head><body><table border=1 cellpadding=10 cellspacing=0><tr><th></th><th>X</th><th>Y</th><th>Z</th></tr><tr><th>1</th><td align="right">2791</td><td align="right">8011</td><td align="right">9582</td></tr><tr><th>2</th><td align="right">6793</td><td align="right">6863</td><td align="right">4790</td></tr><tr><th>3</th><td align="right">8064</td><td align="right">2626</td><td align="right">3917</td></tr><tr><th>4</th><td align="right">2660</td><td align="right">8776</td><td align="right">6805</td></tr></table></body></html></pre>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top