Help plzzz 9/15


#1




<body>

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

indent preformatted text by 4 spaces


#2

it is what I have sorta used to this thing because I did it three times


#3

u know creating posts three times!


#4

What exactly is your question?


#5

my question is why wont this work :smile:


#6

i am confused, you neither made this line red:

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

and neither did you emphasize (<em></em>) these lines:

<th style="padding:5px;">Famous Monster</th>
<th style="padding:5px;border-left:1px solid black;">Birth Year</th>

it doesn't work, because you have done neither of the two things the instructions asked you to do, is there something you do not understand?


#7

how would i make it red because i put th style="color: red;" after the colspan but it doesnt seem to wrok correctly


#8

can i see your code?


#9

yes
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;"><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>


#10

a opening can have two attributes, no need to create an additional th opening. Here is an example of image with two attributes:

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

you can use the same technique to add colspan and style too one <th> tag. Hope this helps, i also have the feeling i answered this question for the third time today, but that could just be me


#11

sorry for bothering you with this but thank you for helping me out i just remembered that i can do that


#12

you didn't bother, this is why i am on the forum. I doubt it is a remainder (edit, remainder, really? i mean reminder obviously), i doubt you have two attributes two one opening tag before