HTML Basics III:9.Style that head!


#1

So I completed this challenge(?), anyways I clicked save and submit and it said it was correct but I was feeling skeptical so I would like it if you(whoever you may be) could do me a favor by checking the code.

          Thanks




<body>

    <table style="border-collapse:collapse;">
        <thead>
            <tr>
                <th style="color:red; colspan:2">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>


#2

If the lesson passes then it's correct.. Anyways I had a look I couldn't find any errors, paste in your CSS


#3

colspan is an attribute, not a style property. Here is example of a image with two attributes:

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

now use this knowledge too have a colspan and style attribute at your th opening tag (<th>)


#4

Sorry, but I don't understand.


#5

But what did you understand? That colspan and style are both attributes? So that you can add them both to the th opening tag, and separate them with a space:

<th colspan="" style="">

#6

Worked for me. Thanks!