YouTip LogoYouTip

Att Th Bgcolor

HTML th bgcolor Attribute | Rookie Tutorial

HTML bgcolor Attribute

Example

Month Savings
January $100

Try it yourself Β»

Browsers Support

All major browsers support the bgcolor attribute.

Definition and Usage

HTML5 does not support the bgcolor attribute of . Use CSS instead.

In HTML 4.01, the bgcolor attribute of is deprecated.

The bgcolor attribute specifies the background color of a header cell.

Compatibility Notes

In HTML 4.01, the bgcolor attribute of is deprecated. Use CSS instead.

CSS Syntax:

CSS Example: Add a background color to a header cell

In our CSS tutorial, you can find more details about the background-color property.

Syntax

Attribute Value

Value Description
color_name Specifies the background color as a color name (e.g., "red").
hex_number Specifies the background color as a hexadecimal value (e.g., "#ff0000").
rgb_number Specifies the background color as an RGB code (e.g., "rgb(255,0,0)").

HTML Tag

HTML Tag

HTML Tag

Coding Plan by Byte Ark

Supports mainstream large models such as Doubao, GLM, DeepSeek, Kimi, MiniMax, and is officially supplied for stable and reliable service.

Β₯9.9 / month

Subscribe Now

Coding Plan by iFlytek Star

Includes free model call quotas, DeepSeek, GLM, Kimi, MiniMax, one-stop experience and deployment platform.

Β₯3.9 / month

Subscribe Now

Share Notes

Category Navigation

  • Python / Data Science
  • AI / Intelligent Development
  • Front-end Development
  • Back-end Development
  • Database
  • Mobile Development
  • DevOps / Engineering
  • Programming Languages
  • Computer Fundamentals
  • XML / Web Service
  • .NET
  • Website Construction

Online Examples

  • HTML Examples
  • CSS Examples
  • JavaScript Examples
  • Ajax Examples
  • jQuery Examples
  • XML Examples
  • Java Examples

Character Set & Tools

  • HTML Character Set Setup
  • HTML ASCII Character Set
  • JS Obfuscation/Encryption
  • PNG/JPEG Image Compression
  • HTML Color Picker
  • JSON Formatting Tool
  • Random Number Generator

Latest Updates

  • docker compose ...
  • GraphRAG Introduction Tutorial
  • Dart Enum and Symbol
  • Dart Unit Testing
  • Dart Concurrency and Iso...
  • Dart Stream Flow
  • Dart Asynchronous Programming

Site Information

  • Feedback
  • Disclaimer
  • About Us
  • Article Archive

Follow WeChat

My Favorites

Mark Articles

Browsing History

Clear All

No Records Yet

← Att Th CharAtt Tfoot Valign β†’