Is there any way to use the "style and colspan attributes" at the same time in the start tag


#1

As instructed in the exercise I'm currently trying to "Make the "Famous Monsters by Birth Year title red" but my starting tag is currently occupied with another attribute "colspan". Is there any way to combine the "colspan" attribute with the "style" attribute.

`

       <thead>
            <tr>
                <th colspan style="2"; "color: red;">Famous Monster by Birth Year</th>
            </tr>
            <tr style="border-bottom:1px solid black;">
                <th style="padding:5px;">Famous Monster</th>

#2

Hello @laboheme125,

Can you also attach a link to the exercise you are on. That would be very helpful...


#3

you can just separate the different attributes with a space, for example a image with a src and alt attribute:

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

hopefully this helps


#4
    <thead>
        <tr>
            <th colspan style="2"; "color: red;">Famous Monster by Birth Year</th>
        </tr>
        <tr style="border-bottom:1px solid black;">
            <th style="padding:5px;">Famous Monster</th>

#5

nope, not really. Did you see my example? color: red is part of the style attribute, 2 of the colspan attribute


#6

Thank you! Really appreciate it.


#7

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