HTML table tag tutorial (36): table header background color attribute BGCOLOR

HTML table tag tutorial (36): table header background color attribute BGCOLOR

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

Recommend

The impact of limit on query performance in MySQL

I. Introduction First, let me explain the version...

Using HTML to implement a voting website cheating scheme that restricts IP

This is a cheating scheme for voting websites wit...

JavaScript Interview: How to implement array flattening method

Table of contents 1 What is array flattening? 2 A...

How to adapt CSS to iPhone full screen

1. Media query method /*iPhone X adaptation*/ @me...

Troubleshooting of master-slave delay issues when upgrading MySQL 5.6 to 5.7

Recently, when upgrading the Zabbix database from...

MySQL 8.0.11 MacOS 10.13 installation and configuration method graphic tutorial

The process of installing MySQL database and conf...

Optimized implementation of count() for large MySQL tables

The following is my judgment based on the data st...

CSS3 to achieve dynamic background gradient effect

Learning CSS3 is more about getting familiar with...

JavaScript to make the picture move with the mouse

This article shares the specific code of JavaScri...

Detailed explanation of MySQL high availability architecture

Table of contents introduction MySQL High Availab...

A brief analysis of event bubbling and event capture in js

Table of contents 01-Event Bubbling 1.1- Introduc...

Storage engine and log description based on MySQL (comprehensive explanation)

1.1 Introduction to storage engines 1.1.1 File sy...

What to do if you forget the initial password of MySQL on MAC

The method to solve the problem of forgetting the...