A table in HTML is specified by the <table> element. The element has several optional elements for presentation which does not need CSS like captions, columns, headings, and footers and are
- <caption> element for giving the table a caption or name.
- <col> elements for properties of each column like the column width but they are not displayed and have no content.
- <colgroup> element to enclose each <col> elements but it is not displayed.
- <thead> element to enclose information of column headers and is used to repeat the header at the top of each page.
- <tbody> element has the table data.
- <tfoot> element to repeat column headers in long tables and to contain summary or footnote.