In HTML, colspan means merging cells on a row. The colspan attribute can define the number of columns that a cell should span (merge); the syntax is "
" , the attribute value "number" specifies the number of columns to be merged. The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.
html What does colspan mean?
colspan is the cells on the merged rows, and rowspan is the cells on the merged columns.
For example: If the first row has only one cell, and the second row has four required information, four cells are needed. In order to make the first row and the second row consistent, just You need to set the colspan of the first row to 4; this seems to divide the first row into four parts, but they are merged, so it looks like one cell.
html colspan attribute
The colspan attribute defines the number of columns that a cell should span (merge).
Syntax:
Copy after login
number specifies the number of columns that the cell should span.
Note:
colspan="0"
tells the browser to make the cell span to the last column of the column group (colgroup).Example:
姓名 年龄 Peter 20 Lois 20 平均: 20岁 Copy after loginRecommended tutorial: "html video tutorial"
The above is the detailed content of html colspan what does it mean. For more information, please follow other related articles on the PHP Chinese website!
Related labels:source:php.cnStatement of this WebsiteThe content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cnLatest Articles by Author
2023-04-26 17:59:18 2023-04-26 17:47:48 2023-04-26 17:41:42 2023-04-26 17:37:05 2023-04-26 17:31:25 2023-04-26 17:27:32 2023-04-25 19:57:58 2023-04-25 19:53:11 2023-04-25 19:49:11 2023-04-25 19:41:54Latest IssuesLeverage VueJS components in PHP I want to mix basic HTML generated by Php and VueJS components without having to use VueJS...From 2023-11-11 00:01:4402288v-date-picker to select only month and year Please tell me if there is any other way to do this using v-date-picker. I just want the u...From 2023-11-10 14:05:0501269Related TopicsMore>
- About us Disclaimer Sitemap
- php.cn:Public welfare online PHP training,Help PHP learners grow quickly!