How to Create Table |
Example: |
<html> <head> <title>tables</title> </head> <body> <b>Table with border=1 cellspacing=1 cellpading=1 with one empty cell. </b><table border=”1″ cellspacing=”1″> <tr> <th>Heading</th> <th>Another Heading</th> </tr> <tr> <td>row 1, cell 1</td> <td>row 1, cell 2</td> </tr> <tr> <td>row 2, cell 1</td> <td> </td> </tr> </table> <br> <b>Table with border=1 cellspacing=1 cellpading=10 bgcolor=lightyellow</b> <table border=”1″ cellspacing=”1″ cellpadding=”10″ bgcolor=”lightyellow”> <tr> <th>Heading</th> <th>Another Heading</th> </tr> <tr> <td>row 1, cell 1</td> <td>row 1, cell 2</td> </tr> <tr> <td>row 2, cell 1</td> <td>row 2, cell 2</td> </tr> </table><br><b> Table with border=8 cellspacing=8 cellpading=1 bgcolor=lightblue bgcolor=lightgreen</b> <table border=”8″ cellspacing=”8″> <tr> <th bgcolor=”lightblue”>Heading</th> <th bgcolor=”lightgreen”>Another Heading</th> </tr> <tr> <td>row 1, cell 1</td> <td>row 1, cell 2</td> </tr> <tr> <td>row 2, cell 1</td> <td>row 2, cell 2</td> </tr> </table> <p> </p> </body> <html> |
Your above web page in the web browser looks like: |
![]() |