Show Output
<!DOCTYPE html> <html lang="en"> <head> <title>Span Multiple Columns in an HTML Table</title> <style> table { width: 300px; border-collapse: collapse; } table, th, td { border: 1px solid black; } th, td { padding: 10px; } </style> </head> <body> <h2>Spanning Columns</h2> <table> <tr> <th>Name</th> <th colspan="2">Phone</th> </tr> <tr> <td>John Carter</td> <td>5550192</td> <td>5550152</td> </tr> </table> </body> </html