What is wrong with my code?

<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.>
https://www.codecademy.com/en/courses/web-beginner-en-f8mcL/1/4?curriculum_id=50579fb998b470000202dc8b

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
Oops, try again. Add a ‘style’ attribute to the first

tag! Set the value of this attribute to ‘color:red;’ ``` Table Time
<body>
    
    <table style="border-collapse:collapse;">
        <thead>
            <tr>
                <th colspan="2"><th style="color: red;"><em>Famous Monster</em>s by <em>Birth Year</em></th></th>
            </tr>
            <tr style="border-bottom:1px solid black;">
                <th style="padding:5px;">Famous Monster</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>
<do not remove the three backticks above>

You don’t need to hae two opening and closing tags on this line. You can add more that one attribute to an opening tag;

<th colspan="2" style="color: red;"><em>Famous Monster</em>s by <em>Birth Year</em></th>

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