Bonjour à tous,
je débute dans le Css j'ai Dreamwever CS4,
ma question,
Est il possible que la couleur d'un mot change en fonction de celui-ci, je m'explique: si dans un tableau j'ai le mot bonjour celui-ci deviens rouge.
je donne un bout de code.

Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>test</title>
 
<style>
 
rouge{
        color:#F00
        }
vert{
        color:#3F0
        }
        
</style>
 
</head>
 
<body>
<p>&nbsp;</p>
<table width="654" border="1" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center">&nbsp;</td>
    <td align="center">1</td>
    <td align="center">2</td>
  </tr>
  <tr>
    <td width="188" align="center">A</td>
    <td width="188" align="center">Bonjour</td>
    <td width="270" align="center">123</td>
  </tr>
  <tr>
    <td align="center">B</td>
    <td align="center">Salut</td>
    <td align="center">autre</td>
  </tr>
  <tr>
    <td align="center">C</td>
    <td align="center">Héllo</td>
    <td align="center">nul</td>
  </tr>
</table>
</body>
</html>