The following table shows the positive values accepted by the rules attribute

Rules Value Effect
Rules="None" Cell borders are not displayed
Rules="Groups" Cell border will appear between row groups and column groups only
Rules="Rows" Rules will appear between rows only
Rules="Cols" Rules will appear between columns only
Rules="All" Displayes all inner borders
<Html>
<Head>
<Title>Creating tables</Title>
</Head>
<Body Topmargin="50" leftmargin="50" Rightmargin="50" BGCOLOR="Lightgreen"> <Table border=5 bordercolor="red" bgcolor="White" Align="left" height="50" width="80" Rules="All">
<Tr bgcolor=yellow> <Td>All</Td> <Td>All</Td> <Td>All</Td>
</Tr>
<Tr> <Td>All</Td> <Td>All</Td> <Td>All</Td>
</Tr>
<Tr> <Td>All</Td> <Td>All</Td> <Td>All</Td>
</Tr>
</Table>
<BR> <Br>
<Table border=5 bordercolor="Red" bgcolor="white" align="right" height="50" width="80" rules=rows>
<Tr bgcolor=yellow> <Td>Rows</Td><Td>Rows</Td><Td>Rows</Td>
</Tr>
<Tr bgcolor=yellow> <Td>Rows</Td><Td>Rows</Td><Td>Rows</Td>
</Tr>
<Tr bgcolor=yellow> <Td>Rows</Td><Td>Rows</Td><Td>Rows</Td>

page no:128
         
Home