Example of HTML tables default border - HTML CSS HTML

HTML CSS examples for HTML:Table

Description

Example of HTML tables default border

Demo Code

ResultView the demo in separate window

The CSS border property sets borders for tables.

<!DOCTYPE html>
<html lang="en">
 <head> 
  <title>Example of HTML tables default border</title> 
 </head> <!--from w  w w.j  a v  a2 s .c o  m-->
 <body> 
  <table border="1"> 
   <tbody>
    <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> 
   </tbody>
  </table> 
 </body>
</html>

Related Tutorials