Style that head! stuck


#1

I dont see where Im getting this wrong. I have been trying for an hour, please help.

below is my code:

<html>
    <head>
        <title>Table Time</title>
    </head>
    
    <body>
        
        <table style="border-collapse:collapse;">
            <thead>
                <tr>
                    <th colspan="2"><style="font-size: 12px;color: red">Famous Monsters by Birth Year</th>
                </tr>
                <tr style="border-bottom:1px solid black;">
                    <th style="padding:5px;"><em>Famous Monster</em></th>
                    <th style="padding:5px;border-left:1px solid black;">Birth Year</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td style="padding:5px;">King Kong</td>
                    <td style="padding:5px;border-left:1px solid black;">1933</td>     
                </tr>
                
                <tr>
                    <td style="padding:5px;">Dracula</td>
                    <td style="padding:5px;border-left:1px solid black;">1897</td>
                </tr>
                
                <tr>
                    <td style="padding:5px;">Bride of Frankenstein</td>
                    <td style="padding:5px;border-left:1px solid black;">1944</td>
                </tr>
            </tbody>
        </table>
        
    </body>

</html>

#2

add both the colspan and style attribute to the <th> opening tag, simply separate the attributes by a space:

<img src="#" alt="my image">

src and alt are also both attributes, they serve as demonstration purpose.

What is the error message you get?


#3


#4

you created an additional set of table row tags? You shouldn't

your table head should contain:
1 table row (tr)
1 table head column (th)


#5

It worked, thank you!


#6