how can i set diferrent fon t color in cell tables html

hi

i have ant html file, in this i have a html table, i need to alternate color cell

example cell row 2 col2 = blue
cell row 3 col 2 = red


is it possible?

thanks a lot
index.html
LVL 1
tenriquez199Asked:
Who is Participating?
 
himanshutConnect With a Mentor Commented:
<table>
        <tr>
            <td>
            </td>
            <td style="background-color: Blue;">
                <font color="red">Hello Red</font>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td style="background-color: Red">
                <font color="Blue">Hello Blue</font>
            </td>
        </tr>
    </table>
0
 
himanshutCommented:
Here You go:

    <table>
        <tr>
            <td>
            </td>
            <td style="background-color: Blue">
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td style="background-color: Red">
            </td>
        </tr>
    </table>
0
 
tenriquez199Author Commented:
himanshut



thanks

i need to chenge color font text, the solution you give me change bakground cell

has you other idea? thanks a lot
0
 
Sathish David Kumar NArchitectCommented:
write in CSS file and call that where you need  Class thats all
0
 
tenriquez199Author Commented:
excelente himanshut thanks
0
All Courses

From novice to tech pro — start learning today.