英[k?l] 美[kɑ:l]

n.峳;山口;pass,xia road,pass;shanwu

html col tag syntax

Function:One or more columns in the table define attribute values.

Note: If you need to apply styles to all columns, the <col> tag is useful, so that you don’t need to repeatedly apply styles to each cell and row. You can only use the <col> tag within a table or colgroup element.

Note: In HTML, <col> has no closing tag. In XHTML, the <col> tag must be closed properly.

html col tag example

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table width="100%" border="1">
    <col align="left" />
    <col align="left" />
    <col align="right" />
    <tr>
        <th>商品種類</th>
        <th>名稱</th>
        <th>價(jià)格</th>
    </tr>
    <tr>
        <td>衣服</td>
        <td>襯衣</td>
        <td>53元</td>
    </tr>
    <tr>
        <td>鞋子</td>
        <td>板鞋</td>
        <td>199元</td>
    </tr>
</table>
</body>
</html>

Run instance ?

Click the "Run instance" button to view the online instance