5/9 Error


#1

Uhm... Could someone help with my code? Here it is:



<body>

    <table style="border-collapse:collapse;">
        <thead>
            <tr>
                <th colspan="2">
                <th style="color:red;">Famous Monsters by Birth Year</th>
            </tr>
            <tr style="border-bottom:1px solid black;">
                <th style="padding:5px label emphasized;">Famous Monster</th>
                <th style="padding:5px;border-left:1px solid black;labels:emphasized">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>


#2
<body>

<table style="border-collapse:collapse;">
    <thead>
        <tr>
            
            <th style="color:red;">Famous Monsters by Birth Year</th>
            <th colspan="2">
        </tr>
        <tr style="border-bottom:1px solid black;">
            <th style="padding:5px label emphasized;">Famous Monster</th>
            <th style="padding:5px;border-left:1px solid black;labels:emphasized">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>

Like This it should work :wink:


#3

you can add multiply attributes to one opening tag, here is an example of a image with multiply attributes:

<img src="#" alt="my_image">

hope you can use this to add style and colspan to one <th> tag.
one more thing, label (and labels) are no style (css) property's, and emphasized no value, you need to use <em></em> tags between your <th></th> tags