Attribut "colspan" et "style" together


Exercice 9; HTML 3

I don't know how put "Monstres célèbres par année de naissance" in red color ( with already "colspan=2" ) I know that is " style="color:red" but where place that ?

Thank you for your help and sorry for my english

        <title>Les tableaux</title>
        <table style="border-collapse:collapse;">
                    <th colspan="2">Les monstres célèbres par année de naissance</th>
                <tr style="border-bottom:1px solid black;">
                    <th style="padding:5px;"><em>Les monstres célèbres</em></th>
                    <th style="padding:5px;border-left:1px solid black;"><em>Année de naissance</em></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;">Frankenstein</td>
                    <td style="padding:5px;border-left:1px solid black;">1944</td>



you can just separate attributes with a space, let me show you:

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

colspan and style are both attribute, you can just add them to one opening tag by separating them with a space


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