HTML Basics 3, lesson 5- trouble with <td> tags


#1

Here...

<html>
    <head>
        <title>Table Time</title>
    </head>
    
    <body>
        
        <table border="1px">
            <tr>
                <td>King Kong</td>
                <td>1933</td>     
            </tr>
            <tr>
                <td>Dracula</td>
                <td>1897</td>
            </tr>
            <td> </td>
            <tr>
                <td>Bride of Frankenstein</td>
                <td>1935</td>  
        </table>
       
    </body>

</html>

I followed the directions and put a pair of <td> tags between <tr> 3. However I'm getting an error message saying the following:

Oops, try again. Did you add a <td></td> to the third row?

Does anyone notice something I did wrong?
Please let me know!


#2

Did this work? If so, I can explain why.

<table border="1px">
    <tr>
        <td>King Kong</td>
	<td>1933</td>     
    </tr>
    <tr>
        <td>Dracula</td>
	<td>1897</td>
    </tr>
    <tr>
	<td></td>
    </tr>
    <tr>
        <td>Bride of Frankenstein</td>
	<td>1935</td>
    </tr>
</table>

#3

I'm sorry, but It didn't work! I don't know what's happening.


#4

Do you have a direct link to the lesson you are on?


#5

Here's the link.


#6

Your code should look something like this:




<body>

    <table border="1px">
        <tr>
            <td>King Kong</td>
            <td>1933</td>     
        </tr>

        <tr>
            <td>Test 1</td>
            <td>1897</td>
        </tr>

        <tr>
            <td>Test 2</td>
            <td>1935</td>
        </tr>
    </table>

</body>


#7

Thank you! what did I do wrong?


#8

The <table></table> element only has a handful of direrct child elements, TD not being among them. <td></td> is a direct child of <tr></tr> in the specification.

Common direct child elements of TABLE:

<caption></caption>

<thead></thead>

<tfoot></tfoot>

<tbody></tbody>

<tr></tr>

#9

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.