class js.html.TableCellElement extends Element
Available on js
The HTML Table Cell Element (<td>
) defines a cell that content data.
Documentation for this class was provided by MDN.
Instance Fields
This attribute contains a short abbreviated description of the content of the cell. Some user-agents, such as speech readers, may present this description before the content itself.
This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are:
- left, aligning the content to the left of the cell
- center, centering the content in the cell
- right, aligning the content to the right of the cell
- justify, inserting spaces into the textual content so that the content is justified in the cell
- char, aligning the textual content on a special character with a minimal offset, defined by the
char
andcharoff
attributes Unimplemented (see bug 2212 ) .
If this attribute is not set, the left value is assumed.
- To achieve the same effect as the left, center, right or justify values, use the CSS
text-align
property on it. - To achieve the same effect as the char value, in CSS3, you can use the value of the
char
as the value of thetext-align
property Unimplemented .
This attribute contains a list of space-separated strings. Each string is the ID of a group of cells that this header applies to.
scope
attribute.This attributes a list of space-separated strings, each corresponding to the id attribute of the <th>
elements that applies to this element.