HTML tutorial-The color of the table

Source: Internet
Author: User
Tutorial in a table, you can either fill the entire table with an undertone or use a background color for any row or TABLE element.

Table background Color <table bgcolor=#>

The background color of the row <tr bgcolor=#>

Table element Background color <th bgcolor=#> or <TD bgcolor=#>

#=rrggbb 16 RGB Digital, or the following predefined color names:
Black, Olive, Teal, Red, Blue, maroon, Navy, gray< /c7>, Lime, fuchsia, White, Green, Purple, Silver, Yellow, Aqua .

Cases:

<title><title>

<table border=2 bgcolor=aqua>
<tr>
<th bgcolor=ffaa00> Color TV </th> <th bgcolor=red> fridge </th> <th rowspan=2> Appliance </th>
<tr bgcolor=yellow>
<td>A</td><td>B</td>
</table>

</body>



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.