Beginner html: cell ends up outside of table | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Beginner html: cell ends up outside of table

Hi, noob question. Im playing around with creating tables. The table is turning out the way that I want it to except for the first cell of the table containing the word "I'm" somehow ends up outside of the table and stands on it own. What am I doing wrong here? How do I get to be inside the table with the rest? <table border="10" align="center" bgcolor="blue> <tr> <td bgcolor="blue">i'm</td> <td bgcolor="yellow">a</td> <td bgcolor="purple">table</td> <td bgcolor="green">look at me</td> </tr> </table>

27th Dec 2019, 3:45 PM
APanin
APanin - avatar
5 Answers
27th Dec 2019, 4:17 PM
🇮🇳Vivek🇮🇳
🇮🇳Vivek🇮🇳 - avatar
0
This will be in first row of tables. Give some colour to border.
27th Dec 2019, 4:03 PM
🇮🇳Vivek🇮🇳
🇮🇳Vivek🇮🇳 - avatar
0
Thanks for the answer. I already added bgcolor="blue" to <table. It doesn't really change anything?
27th Dec 2019, 4:07 PM
APanin
APanin - avatar
0
Add rowspan to <table> solved it! <table border="10" align="center" bgcolor="blue" rowspan= “4"> Now all cells are displayed correctly in one table.
27th Dec 2019, 4:17 PM
APanin
APanin - avatar
0
Thanks! This also works
27th Dec 2019, 4:21 PM
APanin
APanin - avatar