The <TH> tag is used to set the properties of a header in a table. See the table below: <th> tag attributes for table headers Property Description ALIGN Horizontal alignment VALIGN Vertical alignment of cell content BGCOLOR Background color of cell BACKGROUND Background image of cell BORDERCOLOR Border color of cell BORDERCOLORLIGHT Light border color of cell BORDERCOLORDARK Dark border color of cell WIDTH Width of cell HEIGHT Height of cell The background color of the header can be set through the BGCOLOR property. Basic Syntax> <TH BGcolor=color_VALUE> Syntax explanation <br />When defining colors, you can use English color names or hexadecimal color values. File example: 10-34.htm Set the background color of the table header. 01 <!-- ------------------------------ --> 02 <!-- File example: 10-34.htm --> 03 <!-- File Description: Set the background color of the table header--> 04 <!-- ------------------------------ --> 05 <HTML> 06 <HEAD> 07 <TITLE>Set the background color of the header</TITLE> 08 </HEAD> 09 <BODY> 10 <H1>Mainstream web design software</H1> 11 <TABLE BORDER=3 WIDTH=400 HEIGHT=100 Bordercolor=#336699> 12 <TR> 13 <TH Bgcolor=#00FFFF>Web Graphics Software</TH><TH>Fireworks</TH> 14 </TR> 15 <TR> 16 <TD>Web page creation software</TD><TD>Dreamweaver</TD> 17 </TR> 18 <TR> 19 <TD>Web animation software</TD><TD>Flash</TD> 20 </TR> 21 </TABLE> 22 </BODY> 23 </HTML> File Description <br />Line 13 defines the background color of the header as #00FFFF. |
<<: Detailed explanation of the syntax and process of executing MySQL transactions
>>: Vue implements multi-grid input box on mobile terminal
Install Nginx on Docker Nginx is a high-performan...
Table of contents Preface iframe implements sandb...
This article summarizes various ways to implement...
background The Agile model is widely used, and te...
When updating a record in MySQL, the syntax is co...
Docker takes up a lot of space. Whenever we run c...
I have written such an article before, but I used...
Let's first look at several ways to submit a ...
Table of contents Common compression formats: gz ...
1. Installation Environment Computer model: Lenov...
Table of contents 1. Direct assignment 2. Shallow...
I recently installed Ubuntu 20.04 and found that ...
This article has been included on GitHub https://...
When I first taught myself web development, there...