Given my and html
and css
respectively:
<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<head>
<link rel="stylesheet" type="text/css" href="css/estilos.css">
<title>Teste</title>
</head>
<body>
<!--<font color="red"><b><i>FIRE</i></b></font>-->
<div class="tipoPokemon">
Tipo <span id="fire">Fire</span><br>
Tipo <span id="water">Water</span><br>
</div>
</body>
</html>
CSS:
.tipoPokemon #fire{
color: red;
text-transform: uppercase;
font-weight: bold;
font-style: italic;
}
.tipoPokemon #water{
color: blue;
text-transform: uppercase;
font-weight: bold;
font-style: italic;
}
The idea is this: Format specific words in the text, note that it only changes if the color in the example. My question is: Can you group the 3 attributes that repeat themselves and make only one color change? Ex: Declare the 3 attributes as global and vary only the colors.