Home>Article>Web Front-end> How to use html col tag
html The col tag is used to define attribute values for one or more columns in a table. If you need to apply styles to all columns, the
tag is useful, so that you do not need to repeatedly apply styles to each unit and row. You can only use thetag within a table or colgroup element.#html How to use col tag?
Function: One or more columns in the table define attribute values.
Note:
The
tag is useful if you need to apply styles to all columns, so that you don't need to apply styles repeatedly to each cell and row. You can only use thetag within a table or colgroup element.Note: In HTML,
has no closing tag. In XHTML, thetag must be closed properly.html col tag usage example
Title
商品种类 | 名称 | 价格 |
---|---|---|
衣服 | 衬衣 | 53元 |
鞋子 | 板鞋 | 199元 |
Effect:
The above is the detailed content of How to use html col tag. For more information, please follow other related articles on the PHP Chinese website!