HTMLTableRowElement: bgColor property - Web APIs | MDN

Value

One of the following value types can be used:

  • a named color, like red or blue
  • a hex code, like #0000dd

Note: The values accepted here are a subset of the CSS color values. You can reuse HTML color values in CSS, but not in the other direction: the unknown colors would appear differently than expected.

Examples

Use CSS background-color instead. An example is available on the background-color page.

Specifications

Specification
HTML
# dom-tr-bgcolor

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.