Supported Browsers

  • Google Chrome: 1
  • Microsoft Edge: 12
  • Firefox: 1
  • Opera: 12.1
  • Safari: 1

HTML is the foundation of webpages, is used for webpage development by structuring websites and web apps.You can learn HTML from the ground up by following this HTML Tutorial and HTML Examples.



HTML colspan Attribute

The colspan attribute in HTML specifies the number of columns a cell should span. It allows the single table cell to span the width of more than one cell or column. It provides the same functionality as “merge cell” in a spreadsheet program like Excel.

Note: colspan=”0″ tells the browser to span the cell to the last column of the column group (colgroup).  

Syntax:

<td colspan = "value">table content...</td>

Note: It can be used with <td> and <th> elements in an HTML Table

Similar Reads

Attribute Values

number: It specifies how many columns a cell should cover. When set to colspan=”0″, it instructs the browser to expand the cell to the last column of the table section (thead, tbody, or tfoot)....

Supported Browsers

Google Chrome: 1 Microsoft Edge: 12Firefox: 1 Opera: 12.1Safari: 1...

Contact Us