See the code where I am doing worng Correct the code and attached the output also Information table, th, td{ border: 1px solid green; } h1{ font-weight: normal; text-align: center; margin: 0; } </style> </head> <body> <h1>Information</h1> <table> <tr> <th>Company Name</th> <th>Phone</th> <th>Address</th> </tr> <tr> <td rowspan="2">Microsoft</td> <td>1234</td> <td>Princeton street</td> </tr> <tr> <td>5678</td> <td>WDC</td> </tr> <tr> <td colspan="3" align="center"> copyright © abcmicro </td> </tr> </table> </body> </html>
See the code where I am doing worng
Correct the code and attached the output also
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Information table, th, td{ border: 1px solid green; } h1{ font-weight: normal; text-align: center; margin: 0; } </style> </head> <body> <h1>Information</h1> <table> <tr> <th>Company Name</th> <th>Phone</th> <th>Address</th> </tr> <tr> <td rowspan="2">Microsoft</td> <td>1234</td> <td>Princeton street</td> </tr> <tr> <td>5678</td> <td>WDC</td> </tr> <tr> <td colspan="3" align="center"> copyright © abcmicro </td> </tr> </table> </body> </html>
Step by step
Solved in 4 steps with 2 images