[solved]9/15


#1

Can someone help me. I don't know what is wrong with my code; it says,Oops, try again. Add a 'style' attribute to the first


9/15
#2
<title>Table Time</title>
</head>

<body>
    
    <table style="border-collapse:collapse;">
        <thead>
            <tr>
                <th colspan="2" ; style:"background-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;"><em>Birth Year</em></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>


Never mind I just copy and pasted my code


#3

You solved it? Anyway, attributes (colspan and style) are separated by spaces only, no semi-colons. and after an attribute there should be a equal sign, not a colon (style attribute in this case)