A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/bgColor below:

HTMLTableCellElement: bgColor property - Web APIs

HTMLTableCellElement: bgColor property

Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

The HTMLTableCellElement.bgColor property is used to set the background color of a cell or get the value of the obsolete bgColor attribute, if present.

Note: This property is deprecated and CSS should be used to set the background color. Use the background-color property instead.

Value

One of the following value types can be used:

Note: The values accepted here are a limited subset of the CSS color values. Only <named-color> and 3- or 6-digit <hex-color> (with no alpha-channel). While all HTML color values are valid in CSS, this is not true in the other direction.

Examples

Use CSS background-color instead. An example of using background-color with HTML table elements is available on the background-color page.

Specifications Browser compatibility See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4