Whatโ€™s wrong? | Sololearn: Learn to code for FREE!

+2

Whatโ€™s wrong?

Can anybody please explain what I did wrong in this code? (I tried making a table in html) https://code.sololearn.com/W3M75zdTjvj8/?ref=app

10/29/2019 12:48:42 AM

Eli

19 Answers

New Answer

+8

Eli The Boy Here you hadn't define table border. Here you used only one <tr> tag hence all element are in one row .For a realistic table if you use more than one <tr> tag then your words will be in different rows

+9

Eli The Boy Give me the link to that lesson

+9

Your first code(earlier) works ,I tried it ,but as there is only one row in that code hence it looks like a sentence with a single line although it was a table with no border .

+7

In the first line table border is used ,there is no need to define table border for every row ,if you define it with table tag then it is applicable for whole table

+7

Yes,You can make border even with one row . Although that sololearn's code had no border but still you should use it for your own benefit.

+7

Of course you can make table without border but it will become unattractive.

+7

Eli The Boy your welcome ๐Ÿ˜œ๐Ÿค“

+2

Abdul Samad yes that was my mistake i didnt realize that a border meant the lines in between the words i though ot was a design on the outside

+1

Pranav Pratap Singh yeah but in the lesson they do itnon one row w/o a border and it works. am i wrong?

+1

https://code.sololearn.com/WMkLB42mvduL/?ref=app

+1

Pranav Pratap Singh sonif i have a border than i can do even one row?

+1

Pranav Pratap Singh and if yes than why does a border change the rule?

0

oh and here (https://www.sololearn.com/learn/HTML/1033/) is the code of one in the lesson wothout a border Pranav Pratap Singh

0

Pranav Pratap Singh what im asking is can i do a table without a border? cuz thats what us shows in the lesson but when i tried it it didnt work

0

Pranav Pratap Singh so why didnt my first code work? (i changed it by now)

0

Pranav Pratap Singh omg i didnt think of thay lol thanks โœŒ๏ธ

0

I could not see any error in the code, it's giving the output you want to get

0

0

Make de border clear Dont devid de last line of de table row