What does colspan mean in html
This article mainly introduces what colspan means in html, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
In html, colspan means cells on merge parallelism, and the colspan attribute defines the number of columns that cells should span (merge); syntax, the attribute value "number" specifies the number of columns to be merged.
The operating environment of this tutorial: windows7 system, HTML5 version, Dell G3 computer.
Colspan is a cell on merge parallelism, and rowspan is a cell on merge row.
For example, the column: if the first row has only one cell, and the second row has four required information, you need four cells, so that if you want to make the first row consistent with the second row, you need to set the colspan of the first row to 4; this also seems to divide the first row into four parts, but it is merged, so it looks like a cell.
Html colspan attribute
The colspan property defines the number of columns that a cell should span (merge).
Syntax:
Number specifies the number of columns that the cell should span.
Note: colspan= "0" tells the browser to span the cell to the last column of the column group (colgroup).
Example:
Name age Peter 20 Lois 20 average: 20 years old
Thank you for reading this article carefully. I hope the article "what does colspan mean in html" shared by the editor will be helpful to everyone? at the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!