+ 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.
2 ответов
+ 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.
+ 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.