Definition and Usage. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. An HTML table with a ,
, and a element:Browsers can use these elements to enable scrolling of the table body independently of the header and footer. The Table object represents an HTML
element.You can access a
element by using getElementById():You can create a
element by using the document.createElement() method:If you want to report an error, or if you want to make a suggestion, do not hesitate to send us an e-mail:
W3Schools is optimized for learning, testing, and training. Browser compatibility. The
element defines a table row, the
element defines a table header, and the
element defines a table cell. Unfortunately the solutions I have found does not work with bootstrap or … and
elements can be used once in a table. A table header is defined with the
tag. Related topics. Definition and Usage. The source for this interactive example is stored in a GitHub repository. Browsers can use these elements to enable scrolling of the table body independently of the header and footer.
The element is used to identify one or more table rows that contain column labels rather than data. In this relatively simple example, we create a table listing information about a group of students with a and a
, with a number of rows in the body. Examples might be simplified to improve reading and basic understanding. If you'd like to contribute to the data, please check out An HTML table may also include
,
,
, , and elements. See also. How to Use . An HTML table consists of one
element and one or more
,
, and
elements. HTML. Browsers can use this information to enable scrolling of the table body independently of the header and footer - particuarly useful for large tables. Sets or returns a description of the data in a table: tFoot: Returns a reference to the
element of a table: tHead: Returns a reference to the element of a table: width: Not supported in HTML5. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. Also, when printing a large table that spans multiple pages, these elements can enable the table header and footer to be printed at the top and bottom of each page.How to vertical align content inside (with CSS):If you want to report an error, or if you want to make a suggestion, do not hesitate to send us an e-mail:
A simple HTML table, containing two columns and two rows:The
element defines a table row, the
element defines a table header, and the
I am trying to make a table with fixed header and a scrollable content using the bootstrap 3 table. It can be solved in several ways: (1) in HTML, by putting the cell content inside another element, such as a P or DIV and putting a background on that, or (2) introducing a border-background property, or (3) specyfing that the table background is used for the border background.
Sets or returns which inner-borders (between the cells) that should be displayed in a table: summary: Not supported in HTML5. The
element is used in conjunction with the and elements to specify each part of a table (footer, header, body). The tag is used in conjunction with the tag and the tag in determining each part of the table (header, footer, body).
element defines a table cell.How to add collapsed borders to a table (with CSS):How to define table cells that span more than one row or one column:If you want to report an error, or if you want to make a suggestion, do not hesitate to send us an e-mail:
Examples might be simplified to improve reading and basic understanding.
The
element is used in conjunction with the and elements to specify each part of a table (footer, header, body). I needed something a little different, but the answers by @alex and @marion got me started in the right direction. Sets or returns which inner-borders (between the cells) that should be displayed in a table: summary: Not supported in HTML5.
HTML Tag: The element is used to identify one or more rows of a table that contain column labels rather than table data.