+ 1

Aligning content of cell

I'm new to coding. starting with HTML. Kindly help review the code below. My intention is to have the "Orange" in the combined column in the second row to be centralized but it's not coming out as desired. <table border="2"> <tr> <td>Red</td> <td>Blue</td> <td>Green</td> </tr> <tr> <td>Yellow</td> <td colspan="2"> <p align="centre> Orange </p> </td> </tr> </table>

28th Jun 2018, 10:01 PM
Aleem Morenikeji
Aleem Morenikeji - avatar
3 Answers
+ 3
You should use CSS instead to align the content
28th Jun 2018, 10:31 PM
Agent
Agent - avatar
+ 3
https://code.sololearn.com/WBdp6fjO9D8H/?ref=app Here is the code I created which is what you are looking for
28th Jun 2018, 10:37 PM
Agent
Agent - avatar
+ 1
Seen. Thank you very much Agent .
29th Jun 2018, 9:21 PM
Aleem Morenikeji
Aleem Morenikeji - avatar