Home
HTML
HTML Table
Example 5: HTML Table
Run ❯❯
<!DOCTYPE html> <html> <head> <title>Table header th Example</title> <style> table, td, th { border:1px solid black; } </style> <head> </head> <body> <h1>Table th Example</h1> <table> <tr> <th>First</th> <th>Second</th> <th>Third</th> </tr> <tr> <td>Google</td> <td>Microsoft</td> <td>Twitter</td> </tr> </table> <p>By default, text of th elements are bold. We use th element only for the table headers.</p> </body> </html>