Stlye that head?


#1



Table Time

<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="font-size:12px; color:red"></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>

`

see this is my code and i dont know what to do with the question


#2

It’s simpler than that :slight_smile:

<table border="1px">
            <tr>
                <td>King Kong</td>
                <td>1933</td>     
            </tr>
            
            <tr>
                <td>Dracula</td>
                <td>1897</td>
            </tr>
            
            <tr>
                <td>Bride of Frankenstein</td>
                <td>1935</td>
            </tr>
        </table>

#3

in the the first table row we have famous monsters by birth year:

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

this should be red, you can have multiply attributes (colspan, style) on one opening tag, here is an example of adding multiply attributes:

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

if you can't manage this, you can try to add the style attribute to the table row opening tag (<tr>), i think the exercise also approves this.

then in your second table row you have 2 set of th tags. you should nest em tags inside, for example:

<th><em>i will be bold<em></th>

@mohamadbahaa, that is an answer without explanation and of the wrong exercise?


#4

thanks:grin::sunglasses::grimacing:


#5

do we make the table border


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.