HTML Basics III:9.Style that head!

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.

Table Time
    <table style="border-collapse:collapse;">
                <th style="color:red; colspan:2">Famous Monsters by Birth Year</th>
            <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>
                <td style="padding:5px;">King Kong</td>
                <td style="padding:5px;border-left:1px solid black;">1933</td>     
                <td style="padding:5px;">Dracula</td>
                <td style="padding:5px;border-left:1px solid black;">1897</td>
                <td style="padding:5px;">Bride of Frankenstein</td>
                <td style="padding:5px;border-left:1px solid black;">1944</td>

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

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>)

Sorry, but I don’t understand.

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="">
1 Like

Worked for me. Thanks!