HTML table rules attribute
Examples
Show only border between the lines:
<table rules="rows">
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
<tr>
<th>Month</th>
<th>Savings</th>
</tr>
<tr>
<td>January</td>
<td>$100</td>
</tr>
</table>
try it"
Browser Support
Internet Explorer 9 +, Firefox, Opera, Chrome and Safari support rules attribute.
Note: 8 and earlier versions of Internet Explorer does not support the rules attribute <table> tag.
Note: Chrome and Safari does not correct the display properties: In addition to the inner side of the border, but also affected the outside add a border.
Definition and Usage
HTML5 does not support the <table> rules attribute. Use CSS instead.
rules attribute specifies which part of the inner side of the border is visible.
From a practical point of view, it is best not to the provisions of rules, but the use of CSS to add borders (border style) .
grammar
<table rules="value">
Property Value
值 | 描述 |
---|---|
none | 没有线条。 |
groups | 位于行组和列组之间的线条。 |
rows | 位于行之间的线条。 |
cols | 位于列之间的线条。 |
all | 位于行和列之间的线条。 |
HTML <table> tag