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
#html How to use col tag?
Function: One or more columns in the table define attribute values.
Note:
The
Note: In HTML,
html col tag usage example
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <table width="100%" border="1"> <col /> <col /> <col /> <tr> <th>商品种类</th> <th>名称</th> <th>价格</th> </tr> <tr> <td>衣服</td> <td>衬衣</td> <td>53元</td> </tr> <tr> <td>鞋子</td> <td>板鞋</td> <td>199元</td> </tr> </table> </body> </html>
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!