Not sure what I'm doing wrong..:Oops, try again. Add a 'style' attribute to the first <th> tag! Set the value of this attribute to 'color:red;'


#1


https://www.codecademy.com/courses/web-beginner-en-f8mcL/1/4?curriculum_id=50579fb998b470000202dc8b#


I'm not entirely sure why, but when I save & submit code the error message 'Oops, try again. Add a 'style' attribute to the first

tag! Set the value of this attribute to 'color:red;' pops up.
Also, when I turn the Famous Monsters title red, it shifts it way over to the right, I'd like to fix that too if possible.

Thanks all.


Replace this line with your code. 
<html>
    <head>
        <title>Table Time</title>
    </head>
    
    <body>
        
        <table style="border-collapse:collapse;">
            <thead>
                <tr>
                    <th colspan="2">
                    <th style="color:red">
                   Famous Monsters by Birth Year</th>
                   
                        
                    </th>
                </tr>
                <tr style="border-bottom:1px solid black;">
                    <th style="padding:5px;"><i>Famous Monster</i></th>
                    <th style="padding:5px;border-left:1px solid black;"><i>Birth Year</i></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

You've forgotten to add the semicolon ( ; ) in <th style="color:red">


#3

Cool, thank you.

There were other issues too, but I've fixed it now.


#4

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