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

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

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!

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>

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

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

Here’s the link.

Your code should look something like this:

Table Time
<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>

Thank you! what did I do wrong?

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>

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