HTML tag attributes
HTML is made up of tags and attributes. Attributes allow you to add extra functionality such as changing colour or adding javascript.
<TABLE>
<TR><TH> Name </TH> <TH> Age </TH></TR>
<TR> <TD> Bert </TD> <TD> 13 </TD> </TR>
<TR> <TD> Sally </TD> <TD> 12 </TD> </TR>
</TABLE>
Take the above code and add formatting. You can change the background colour of a table cell by using the bgcolor attribute. Ensure that the TH tag has a different colour to the rest of the table.
Note – If you want to do this properly you could use the style attribute which allows some CSS to be added. You do not have to do this to get the points!

You need to log in or create an account to submit code!











