Stlye that head?


Table Time


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



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


It’s simpler than that :slight_smile:

<table border="1px">
                <td>King Kong</td>
                <td>Bride of Frankenstein</td>


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?




do we make the table border


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