CodeLab
Tutorials For Everyone
Run
<!Doctype HTML> <html> <head> <title>HTML table border</title> <style> table, th, td{ border: 1px solid #999; } </style> </head> <body> <h2>HTML Table border</h2> <p>We can add border to table by using the css border property.</p> <table style="width: 100%;"> <tr> <th>Company</th> <th>Product</th> <th>Ranking</th> </tr> <tbody> <tr> <td>Google</td> <td>Search engine</td> <td>1</td> </tr> <tr> <td>Google</td> <td>Youtube</td> <td>2</td> </tr> <tr> <td>Facebook</td> <td>Facebook App</td> <td>3</td> </tr> <tr> <td>Amazon</td> <td>Amazon Inc</td> <td>4</td> </tr> </tbody> </table> </body> </html>