Provides a hint for generating a keyboard shortcut for the current element.
Provides a hint for generating a keyboard shortcut for the current element. This attribute consists of a space-separated list of characters. The browser should use the first one that exists on the computer keyboard layout.
This enumerated attribute indicates how the table must be aligned in regard of the containing document.
This enumerated attribute indicates how the table must be aligned in regard of the containing document. It may have the following values:
Note:
<table>
element should be styled using CSS. To give an effect similar to the align attribute, the CSS layout should be used, like margin-left
and margin-right
set to auto
( or margin
to 0 auto
) to center it.middle
, absmiddle
, and abscenter
as synonyms of center
. This attribute defines the background color of the table and its content.
This attribute defines the background color of the table and its content. It is one of the 6-digit hexadecimal code as defined in sRGB, prefixed by a '#'. One of the sixteen predefined color strings may be used:
black = "#000000" | green = "#008000" | ||
silver = "#C0C0C0" | lime = "#00FF00" | ||
gray = "#808080" | olive = "#808000" | ||
white = "#FFFFFF" | yellow = "#FFFF00" | ||
maroon = "#800000" | navy = "#000080" | ||
red = "#FF0000" | blue = "#0000FF" | ||
purple = "#800080" | teal = "#008080" | ||
fuchsia = "#FF00FF" | aqua = "#00FFFF" |
Usage note: Do not use this attribute, as it has been deprecated and the
<table>
element should be styled using
CSS. To give an effect similar to the
bgcolor attribute, the
CSS property
background-color
should be used.
This integer attribute defines, in pixels, the size of the frame surrounding the table.
This integer attribute defines, in pixels, the size of the frame surrounding the table. If set to
0, it implies that the
frame
attribute is set to
void.
Usage note: Do not use this attribute, as it has been deprecated and the
<table>
element should be styled using
CSS. To give an effect similar to the
border attribute, the
CSS properties
border
,
border-color
,
border-width
and
border-style
should be used.
This attribute defines the space between the content of a cell and the border, displayed or not, of it.
This attribute defines the space between the content of a cell and the border, displayed or not, of it. If it is a pixel length, this pixel-sized space will be applied on all four sides; if it is a percentage length, the content will be centered and the total vertical space (top and bottom) will represent this percentage. The same is true for the total horizontal space (left and right).
Usage note: Do not use this attribute, as it has been deprecated and the
<table>
element should be styled using
CSS. To give an effect similar to the
border attribute, use the
CSS property
border-collapse
with the value collapse on the
<table>
element itself, and the property
padding
on the
<td>
.
This attribute defines the size, in percentage or in pixels, of the space between two cells (both horizontally and vertically), between the top of the table and the cells of the first row, the left of the table and the first column, the right of the table and the last column and the bottom of the table and the last row.
This attribute defines the size, in percentage or in pixels, of the space between two cells (both horizontally and vertically), between the top of the table and the cells of the first row, the left of the table and the first column, the right of the table and the last column and the bottom of the table and the last row.
Usage note: Do not use this attribute, as it has been deprecated and the
<table>
element should be styled using
CSS. To give an effect similar to the cellspacing attribute, use the
CSS property
border-spacing
on the <table>
element itself.
Is a space-separated list of the classes of the element.
Is a space-separated list of the classes of the element. Classes allows CSS and JavaScript to select and access specific elements via the
class selectors or functions like the method
Document.getElementsByClassName()
.
Is an enumerated attribute indicating if the element should be editable by the user.
Is an enumerated attribute indicating if the element should be editable by the user. If so, the browser modifies its widget to allow editing. The attribute must take one of the following values:
true
or the empty string, which indicates that the element must be editable;false
, which indicates that the element must not be editable.Is the
id
of an
<menu>
to use as the contextual menu for this element.
Is an enumerated attribute indicating the directionality of the element's text.
Is an enumerated attribute indicating the directionality of the element's text. It can have the following values:
ltr
, which means left to right and is to be used for languages that are written from the left to the right (like English);rtl
, which means right to left and is to be used for languages that are written from the right to the left (like Arabic);auto
, which let the user agent decides. It uses a basic algorithm as it parses the characters inside the element until it finds a character with a strong directionality, then apply that directionality to the whole element.Is an enumerated attribute indicating whether the element can be dragged, using the Drag and Drop API.
Is an enumerated attribute indicating whether the element can be dragged, using the Drag and Drop API. It can have the following values:
true
, which indicates that the element may be draggedfalse
, which indicates that the element may not be dragged.Is an enumerated attribute indicating what types of content can be dropped on an element, using the Drag and Drop API.
Is an enumerated attribute indicating what types of content can be dropped on an element, using the Drag and Drop API. It can have the following values:
copy
, which indicates that dropping will create a copy of the element that was draggedmove
, which indicates that the element that was dragged will be moved to this new location.link
, will create a link to the dragged data.This enumerated attribute defines which side of the frame surrounding the table must be displayed.
This enumerated attribute defines which side of the frame surrounding the table must be displayed. It may have the following values:
above | below | ||
hsides | vsides | ||
lhs | rhs | ||
border | box | ||
void |
Usage note: Do not use this attribute, as it has been deprecated and the
<table>
element should be styled using
CSS. To give an effect similar to the
frame attribute, use the
CSS properties
border-style
and
border-width
.
Is a Boolean attribute indicates that the element is not yet, or is no longer, relevant.
Is a Boolean attribute indicates that the element is not yet, or is no longer, relevant. For example, it can be used to hide elements of the page that can't be used until the login process has been completed. The browser won't render such elements. This attribute must not be used to hide content that could legitimately be shown.
Defines a unique identifier (ID) which must be unique in the whole document.
These attributes are related to the WHATWG HTML Microdata feature.
These attributes are related to the WHATWG HTML Microdata feature.
Participates in defining the language of the element, the language that non-editable elements are written in or the language that editable elements should be written in.
Participates in defining the language of the element, the language that non-editable elements are written in or the language that editable elements should be written in. The tag contains one single entry value in the format defines in the Tags for Identifying Languages (BCP47) IETF document. xml:lang has priority over it.
This enumerated attribute defines where rules, i.e.
This enumerated attribute defines where rules, i.e. lines, should appear in a table. It can have the following values:
<thead>
, <tbody>
and <tfoot>
elements) and between column groups (defined by the <col>
and <colgroup>
elements) only;
- rows, which will make the rules to be displayed between rows;
- columns, which will make the rules to be displayed between columns;
- all, which wil make the rules to be displayed between rows and columns.
Note:
- The styling of the rules is browser-dependant and cannot be modified.
- Do not use this attribute, as it has been deprecated and the rules should be defined and styled using CSS. Use the CSS property border
on the adequate <thead>
, <tbody>
, <tfoot>
, <col>
or <colgroup>
elements.
Is an enumerated attribute defines whether the element may be checked for spelling errors.
Is an enumerated attribute defines whether the element may be checked for spelling errors. It may have the following values:
true
, which indicates that the element should be, if possible, checked for spelling errors;false
, which indicates that the element should not be checked for spelling errors.Contains CSS styling declarations to be applied to the element.
This attribute defines an alternative text use to describe the table in user-agent unable to display it.
This attribute defines an alternative text use to describe the table in user-agent unable to display it. Typically, it contents a description of it to allow visually impaired people, like blind people browsing the web using Braille screen, to get the information in it. If the information added in this attribute may also be useful for non-visually impaired people, consider using the
<caption>
instead. The summary attribute is not mandatory and may be omitted when a
<caption>
element fulfills its role.
Usage Note: Do not use this attribute, as it has been deprecated. Instead, use one of these way of describing a table:
- In prose, surrounding the table (this is the less semantic-conveying way of doing it).
- In the table's <caption>
element.
- In a <details>
element, inside the table's <caption>
element.
- Include the <table>
element in a <figure>
element and add the description in prose next to it.
- Include the <table>
element in a <figure>
element and add the description in prose inside a <figcaption>
element.
- Adjust the table so that such description is no more needed, by using <th>
and <thead>
elements for example.
Is an integer attribute indicates if the element can take input focus (is focusable), if it should participate to sequential keyboard navigation, and if so, at what position.
Is an integer attribute indicates if the element can take input focus (is focusable), if it should participate to sequential keyboard navigation, and if so, at what position. It can takes several values:
0
means that the element should be focusable and reachable via sequential keyboard navigation, but its relative order is defined by the platform convention;Contains a text representing advisory information related to the element it belongs to.
Contains a text representing advisory information related to the element it belongs to. Such information can typically, but not necessarily, be presented to the user as a tooltip.
Is an enumerated attribute that is used to specify whether an element's attribute values and the values of it
s
Text
node children are to be translated when the page is localized, or whether to leave them unchanged.
Is an enumerated attribute that is used to specify whether an element's attribute values and the values of it
s
Text
node children are to be translated when the page is localized, or whether to leave them unchanged. It can have the following values:
"yes"
, which indicates that the element will be translated."no
", which indicates that the element will not be translated.This attribute defines the width of the table.
This attribute defines the width of the table. It may either be a pixel length or a percentage value, representing the percentage of the width of its container that the table should use.
Usage Note: Do not use this attribute, as it has been deprecated and the rules should be defined and styled using
CSS. Use the
CSS property
width
instead.
The HTML Table Element (
<table>
) represents data in two dimensions or more. Note: Prior to the creation of CSS, HTML<table>
elements were often used as a method for page layout. This usage has been discouraged since HTML 4, and the<table>
element should not be used for layout purposes. However, HTML emails are an exception, where tables are still commonly used for layout purposes.