Posts

Showing posts with the label colspan

What is HTML (Hyper text markup language) table ?

 What is HTML (Hyper text markup language) table ?  HTML(Hyper text markup language) table tag is used to display data in tabular form (row * column). There can be many columns in a row.there can be many columns in row . We can create a table to display data in tabular form, using <table> element, with the help of <tr> table row , <td>table data , and <th>table header   elements. In Each table, table row is defined by <tr> tag, table header is defined by <th>, and table data is defined by <td> tags. HTML TABLE IS USED FOR  HTML tables are used to manage the layout of the page e.g. header section, navigation bar, body content, footer section etc. But it is recommended to use div tag over table to manage the layout of the page .  The HTML tables are created using the <table> tag in which the <tr> tag is used to create table rows and <td> tag is used to create data cells. The elements under <td> ar...

What is Colspan in HTML?

 What is Colspan in HTML? The colspan attribute defines the number of  columns a table cell should span. Example How to use Colspan in <TABLE> In HTML <table>   <tr>     <th>Month</th>     <th>Extra Income</th>   </tr>   <tr>     <td>March</td>     <td>$300</td>   </tr>   <tr>      <td>April</td>     <td>$300</td>   </tr>   <tr>     < td colspan   ="2"> Sum: $680</td>   </tr> </table>