Need help html basic 3 task 9


#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="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>


#2

yes thats the one but how do we do it


#3

what exactly is your question? Nesting the em tags should be pretty easy, right?

as for the style attribute, a html element can have multiply attributes, just separate them with a space, here is an example of an image:

<img src="url" alt="my image">

now you can use this knowlegde to have a style and colspan attribute on a th opening tag


#4

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