Jun 5, 2015 · There is one way. You can use data-* attributes. Like this: <!-- ... --> <tr bgcolor="#6699FF"> <th>Name</th> <th>DOJ</th> <th>BAU</th> ...
People also ask
How to use tables for the web page formatting using HTML?
The <table> tag defines an HTML table. An HTML table consists of one <table> element and one or more <tr>, <th>, and <td> elements. The <tr> element defines a table row, the <th> element defines a table header, and the <td> element defines a table cell.
What is a TD tag in HTML?
The <td> tag defines a standard data cell in an HTML table. An HTML table has two kinds of cells: Header cells - contains header information (created with the <th> element) Data cells - contains data (created with the <td> element)
How to create an advanced table in HTML?
As your tables get a bit more complex in structure, it is useful to give them more structural definition. One clear way to do this is by using <thead> , <tbody> , and <tfoot> , which allow you to mark up a header, body, and footer section for the table.
What is the Colspan in HTML?
Description. The colSpan property sets or returns the value of the colspan attribute. The colspan attribute specifies the number of columns a table cell should span. Tip: Use the rowSpan property to set or return the value of the rowspan attribute.