forked from mdn/content
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add HTMLTable{Row|Cell}.bgColor (mdn#32994)
* Add HTMLTable{Row|Cell}.bgColor * Update files/en-us/web/api/htmltablecellelement/bgcolor/index.md Co-authored-by: Estelle Weyl <[email protected]> * Update files/en-us/web/api/htmltablecellelement/bgcolor/index.md Co-authored-by: Estelle Weyl <[email protected]> * Update files/en-us/web/api/htmltablecellelement/bgcolor/index.md Co-authored-by: Estelle Weyl <[email protected]> * Update files/en-us/web/api/htmltablecellelement/bgcolor/index.md Co-authored-by: Estelle Weyl <[email protected]> * Update files/en-us/web/api/htmltablecellelement/bgcolor/index.md Co-authored-by: Estelle Weyl <[email protected]> * Update files/en-us/web/api/htmltablerowelement/bgcolor/index.md Co-authored-by: Estelle Weyl <[email protected]> * Update files/en-us/web/api/htmltablerowelement/bgcolor/index.md * Update files/en-us/web/css/background-color/index.md Co-authored-by: Estelle Weyl <[email protected]> * Update files/en-us/web/css/background-color/index.md Co-authored-by: Estelle Weyl <[email protected]> --------- Co-authored-by: Estelle Weyl <[email protected]>
- Loading branch information
Showing
3 changed files
with
140 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
title: "HTMLTableCellElement: bgColor property" | ||
short-title: bgColor | ||
slug: Web/API/HTMLTableCellElement/bgColor | ||
page-type: web-api-instance-property | ||
browser-compat: api.HTMLTableCellElement.bgColor | ||
--- | ||
|
||
{{APIRef("HTML DOM")}}{{deprecated_header}} | ||
|
||
The **`HTMLTableCellElement.bgColor`** property is used to set the background color of a cell or get the value of the obsolete [`bgColor`](/en-US/docs/Web/HTML/Element/td#bgcolor) attribute, if present. | ||
|
||
**Note:** This property is deprecated and CSS should be used to set the background color. Use the {{cssxref("background-color")}} property instead. | ||
|
||
## Value | ||
|
||
One of the following value types can be used: | ||
|
||
- a named color, like `red` or `blue` | ||
- a hex code, like `#0000dd` or `#00d` | ||
|
||
** Note: ** The values accepted here are a limited subset of the CSS color values. Only {{cssxref("named-color")}} and 3- or 6-digit {{cssxref("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](/en-US/docs/Web/CSS/background-color#colorize_tables) is available on the {{cssxref("background-color")}} page. | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- {{domxref("HTMLTableRowElement.bgColor")}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
title: "HTMLTableRowElement: bgColor property" | ||
short-title: bgColor | ||
slug: Web/API/HTMLTableRowElement/bgColor | ||
page-type: web-api-instance-property | ||
browser-compat: api.HTMLTableRowElement.bgColor | ||
--- | ||
|
||
{{APIRef("HTML DOM")}}{{deprecated_header}} | ||
|
||
The **`HTMLTableRowElement.bgColor`** property is used to set the background color of a row or retrieve the value of the obsolete [`bgColor`](/en-US/docs/Web/HTML/Element/tr#bgcolor) attribute, if present. | ||
|
||
**Note:** This property is deprecated and CSS should be used to set the background color. Use the {{cssxref("background-color")}} property instead. | ||
|
||
## 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](/en-US/docs/Web/CSS/background-color#colorize_tables) is available on the {{cssxref("background-color")}} page. | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- {{domxref("HTMLTableCellElement.bgColor")}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters