Aligning content of cell | SoloLearn: Learn to code for FREE!


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>

6/28/2018 10:01:17 PM

Aleem Morenikeji

3 Answers

New Answer


You should use CSS instead to align the content

+3 Here is the code I created which is what you are looking for


Seen. Thank you very much Agent .