Desuden kan man påpege nogle gode sideeffekter, når man angiver det ordentligt, kig f.eks. på dette eksempel:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
html,body{height:100%;margin:0px;border:0px;padding:0px;font-family:tahoma,verdana,arial,sans-serif;font-size:small;}
table{border-collapse:collapse;}
td{margin:0;padding:0;border:0;}
.oddrow{background-color:#eee;}
.evenrow{background-color:#ddd;}
</style>
<title>Alternerende rækkefarve</title>
</head>
<body>
<table>
<tr class="oddrow" onmouseover="this.style.backgroundColor='#ffa';" onmouseout="this.style.backgroundColor='';">
<td style="width:100px;">Titel</td>
<td style="width:400px;">Text</td>
<td style="width:100px;">pris</td>
</tr>
<tr class="evenrow" onmouseover="this.style.backgroundColor='#ffa';" onmouseout="this.style.backgroundColor='';">
<td>Titel</td>
<td>Text</td>
<td>pris</td>
</tr>
<tr class="oddrow" onmouseover="this.style.backgroundColor='#ffa';" onmouseout="this.style.backgroundColor='';">
<td>Titel</td>
<td>Text</td>
<td>pris</td>
</tr>
<tr class="evenrow" onmouseover="this.style.backgroundColor='#ffa';" onmouseout="this.style.backgroundColor='';">
<td>Titel</td>
<td>Text</td>
<td>pris</td>
</tr>
<tr class="oddrow" onmouseover="this.style.backgroundColor='#ffa';" onmouseout="this.style.backgroundColor='';">
<td>Titel</td>
<td>Text</td>
<td>pris</td>
</tr>
</table>
</body>
</html>