I'm stuck HTLM basics III Style That Head!


#1



Not Really Sure What The Problem Is. :confused:

https://www.codecademy.com/courses/web-beginner-en-f8mcL/1/4?curriculum_id=50579fb998b470000202dc8b#


Add a 'style' attribute to the first


Replace this line with your code. 
<html>
    <head>
        <title>Table Time</title>
    </head>
    
    <body>
        
        <table style="border-collapse:collapse;">
            <thead style="font-size:20px; color:violet">
                <tr>
                    <th colspan="2">Famous Monsters by Birth Year</th>
                </tr>
                <tr style="border-bottom:1px solid black; color:red">
                  <th style="padding:5px; color:red"><em>Famous Monster</em></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>

</html>


#2

you should add the style attribute to:

<th colspan="2">Famous Monsters by Birth Year</th>

i believe the exercise also approves it if you add the style attribute to his parent (<tr></tr>), but it would be better to add to the th tag


#3

How exactly to add the attribute next to the colspan attribute?


#4

Oops. nvm I found it. Thanks a lot. <3


#5

here is an example of a image with two attributes:

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

you can just add multiply attributes by separating them with a space. Good to read you figured it out :slight_smile: