Show Output
<!DOCTYPE html> <html lang="en"> <head> <title>Span Multiple Rows 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 Rows</h2> <table> <tr> <th>Name:</th> <td>John Carter</td> </tr> <tr> <th rowspan="2">Phone:</th> <td>55577854</td> </tr> <tr> <td>55577855</td> </tr> </table> </body> </html