I don't no what i have done wrong and what i have to do?


#1


HTML Basics 3 (8 Naming your table)


It keeps on saying this no matter what i do or change to the code "
Oops, try again. Did you add a colspan attribute to the

tag of the first row?"

The question is:

Naming your table
Our table is missing a title. We want to add a title row that goes all the way across the top.

To do so, we need to use the colspan attribute for the

tag. By default, table cells take up 1 column. If we want a table cell to take up the space of 3 columns instead of 1, we can set the colspan attribute to 3.

It looks like this:

3 columns across!
Instructions
Go to the Result view. We've added the title row for you, but it only spans 1 column right now.
Make the column span 2 columns with the colspan attribute. Adding the attribute colspan="2" to a tag should do the trick.
Return to the Result view again. Our title spans 2 columns now!

Can someone please tell me what i have done wrong and what i have to do?

Replace this line with your code. 
<html>
    <head>
        <title>Table Time</title>
    </head>
    
    <body>
        
        <table border="1px">
            <thead>
                <tr>
                    <t colspan="2">>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>

</html>


#2

Your opening tag uses t when it should be th.


#3

You are missing
<!DOCTYPE html>
at the start of your code.


#4

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