HTML Basics lll


#1



Table Time

<body>

    <table border="1px">
        <thead>
            <tr>
    <th colspan="3">Famous Monsters by Birth Year</th>
            </tr>
            <tr>
                <th>Famous Monster</th>
                <th>Birth Year</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>King Kong</td>
                <td>1933</td>     
            </tr>

            <tr>
                <td>Dracula</td>
                <td>1897</td>
            </tr>

            <tr>
                <td>Bride of Frankenstein</td>
                <td>1935</td>
            </tr>
        </tbody>
    </table>

</body>


I dont know why my code doesnt work.
It says:
Oops, try again. Did you add a colspan attribute to the <th> tag of the first row?

Replace this line with your code.


#2

you only have two cells, why should your table head span 3 cells? It should only span 2 cells


#4

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