Articles → HTML → Rules attribute in HTML
Rules attribute in HTML
Objective of this Tutorial
Technical knowledge
Rules
Create a HTML table
<html>
<body>
<form method="Post">
<table border="1">
<thead>
<tr>
<td>
Label
</td>
<td>
Fields
</td>
</tr>
</thead>
<tr>
<td>
User Name
</td>
<td>
<input type="text" />
</td>
</tr>
<tr>
<td>
Password
</td>
<td>
<input type="text" />
</td>
</tr>
<tr>
<td>
Address
</td>
<td>
<input type="text" />
</td>
</tr>
</table>
</form>
</body>
</html>
Click to Enlarge
rows
<table border="1" rules="rows">
<!--Internal rows and columns will remain same-->
</table>
Click to Enlarge
cols
<table border="1" rules="cols">
<!--Internal rows and columns will remain same-->
</table>
Click to Enlarge
groups
<table border="1" rules="groups">
<!--Internal rows and columns will remain same-->
</table>
Click to Enlarge
none
<table border="1" rules="none">
<!--Internal rows and columns will remain same-->
</table>
Click to Enlarge
all
<table border="1" rules="all">
<!--Internal rows and columns will remain same-->
</table>
Click to Enlarge
Browser support
Internet Explorer | Firefox | Chrome | Safari | Opera | Edge |
9.0 | Yes | Yes | Yes | Yes | Yes |