HTML table tag tutorial (7): background color attribute BGCOLOR

HTML table tag tutorial (7): background color attribute BGCOLOR

The background color of the table can be set through the BGCOLOR attribute.
Basic syntax
<TABLE BGCOLORr=color_VALUE>
Syntax explanation <br />When defining colors, you can use English color names or hexadecimal color values.
File example: 10-7.htm
Sets the table background color.
01 <!-- ------------------------------ -->
02 <!-- File example: 10-7.htm -->
03 <!-- File Description: Set the table background color-->
04 <!-- ------------------------------ -->
05 <HTML>
06 <HEAD>
07 <TITLE>Set the table background color</TITLE>
08 </HEAD>
09 <BODY>
10 <H1>Mainstream web design software</H1>
11 <TABLE BORDER=3 WIDTH=400 HEIGHT=100 Bordercolor=#336699 Bgcolor=#00FFFF>
12 <TR>
13 <TD>Web Graphics Software</TD><TD>Fireworks</TD>
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 11 defines the background color of the table as #00FFFF.

<<:  MySQL fuzzy query usage (regular, wildcard, built-in function)

>>:  WeChat applet implements SMS login in action

Recommend

How to test network speed with JavaScript

Table of contents Preface Summary of the principl...

Let's talk about the difference between containers and images in Docker

What is a mirror? An image can be seen as a file ...

React sample code to implement login form

As a Vue user, it's time to expand React. Fro...

Pure CSS to achieve the list pull-down effect in the page

You may often see the following effect: That’s ri...

Six weird and useful things about JavaScript

Table of contents 1. Deconstruction Tips 2. Digit...

Three common ways to embed CSS in HTML documents

The following three methods are commonly used to d...

React's component collaborative use implementation

Table of contents Nesting Parent-child component ...

Linux nohup command principle and example analysis

nohup Command When using Unix/Linux, we usually w...

How to build your own Angular component library with DevUI

Table of contents Preface Creating a component li...

Common usage of regular expressions in Mysql

Common usage of Regexp in Mysql Fuzzy matching, c...

Simple writing of MYSQL stored procedures and functions

What is a stored procedure Simply put, it is a se...