Error in course description of HTML | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Error in course description of HTML

In HTML course "the align and bgcolor attributes" you are not coloring a row red as described, in example it is only a cell which gets the color.

2nd Apr 2017, 6:38 AM
Mike Dietrich
Mike Dietrich - avatar
2 Answers
+ 14
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <table border="1" align="center" bgcolor="#00FFFF"> <tr> <td>Abc</td> <td>Def</td> </tr> <tr> <td>Abc</td> <td>Def</td> </tr> </table> </body> </html> It's working on my SoloLearn code playground. Try to run this code. Though it wil work, I recommend you to use CSS instead to do all this stuff.
2nd Apr 2017, 5:14 PM
Biraj Patel
+ 1
thanks. but it would be good if the default example is that what is described in the text. so the example should have the bgcolor definition in tr tag and not in a td. css is most time the best solution.
2nd Apr 2017, 5:39 PM
Mike Dietrich
Mike Dietrich - avatar