Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

HTML Lesson 11 - Level 4 STUCK

Hello,

I cannot pass this lessson. This is my code:

<!doctype html>
<html>
<head>
<title>My Webpage Title</title>
</head>
<body>
<table border='1'>
<thead>
<th>Country</th>
<th>Independence Day</th>
</thead>
<tbody>
<tr>
<td>India</td>
<td>15th August, 1947</td>
</tr>

<tr>
<td>USA</td>
<td>4th July, 1776</td>
</tr>

<tr>
<td>China</td>
<td>1st October, 1949</td>
</tr>
</tbody>
</table>
</body>
</html>


I get a message telling me they cannot see any row inside Head Of Table.

Can somebody help?
My task is to create those <th> rows to give the name of the table contents.
by

1 Answer

kshitijrana14
Try this one:

<!doctype html>
<html>
<head>
<title>My Webpage Title</title>
</head>
<body>
<table border='1'>
<thead>
<tr> <th>Country</th>
<th>Independence Day</th></tr>
</thead>
<tbody>
<tr>
<td>India</td>
<td>15th August, 1947</td>
</tr>

<tr>
<td>USA</td>
<td>4th July, 1776</td>
</tr>

<tr>
<td>China</td>
<td>1st October, 1949</td>
</tr>
</tbody>
</table>
</body>
</html>

Login / Signup to Answer the Question.