Style that head! problems


#1

I am having problems in this section. I keep getting the error message of "Oops, try again. Surround 'Famous Monster' with tags!".
I have tried different combinations of the code. Where the "famous monsters" is emphasised in both the main title (the red one) and in the table heading. Or where only the "famous monsters" table heading is emphasised and vice versa. I have tried doing this is a different browser and resetting the code, here is my code, maybe there is something missing. Please help!
Here is my code:

    <head>
        <title>Table Time</title>
    </head>
    
    <body>
        
        <table style="border-collapse:collapse;">
            <thead>
                <tr>
                    <th style="color: red; colspan:2"><p><em>Famous Monsters</em> by Birth Year</p></th>
                </tr>
                <tr style="border-bottom:1px solid black;">
                    <th style="padding:5px;"><p><em>Famous Monster</em></p></th>
                    <th style="padding:5px;border-left:1px solid black;"><p><em>Birth Year</em></p></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>

</html>

#2

I checked and found nothing wrong with this code.
Perhaps you should try again.


#3

i would remove the paragraphs from the table headings

Colspan is a attribute, not a value for the style attribute. Here is an example of 2 attributes:

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

now use this technique to add the style and colspan attribute


#4

despite having Famous Monster italic this code still gives me this message

Oops, try again. Surround 'Famous Monster' with em>


#5

Make sense, you copied his code while he indicate there was a problem with the code, and it seems you didn't read our suggestions on how to correct this code:


#6

I went to previous step and copied the code and after required changes my code worked fine. thanks for your reply by the way


#8

2 posts were split to a new topic: Style that head problems


#10

i think only the famous monster should be not in "famous monsters by birth year"


#11

@yournameyahoo.com, pardes5 already resolved the issue.


#12

here is my code, it keeps on saying
Oops, try again.
Add a 'style' attribute to the first

tag! Set the value of this attribute to 'color:red;'

the code




<body>

    <table style="border-collapse:collapse;">
        <thead>
            <tr>
                <th colspan="2; style=font-color:red">Famous Monsters by Birth Year</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>


#13

style and colspan are both attributes, you can have multiply attributes on a single opening tag. You simple separate them with a space, here is an example of a image having two attributes:

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

now, see if you can use this knowledge to apply the style and colspan attribute correctly in the <th> tag


#14

I'm having the same issue, I have tried everything I can think of, changing the

deleting the colspan, adding thebut nothing seems to work, Can anyone helped me?


#15

Sure, please make your own topic with code + error message + question