Articles → HTML → Rules attribute in HTML

Rules attribute in HTML






Objective of this Tutorial





Technical knowledge





Rules






<table rules= "values">





























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 ExplorerFirefoxChromeSafariOperaEdge
9.0YesYesYesYesYes



Posted By  -  Karan Gupta
 
Posted On  -  Thursday, September 22, 2011
 
Updated On  -  Wednesday, March 15, 2017

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250