This is my html page:
<!DOCTYPE html>
<html lang="en">
<head>
<title>My Page</title>
</head>
<body>
<table>
<tr>
<td>Apples</td>
<td>4</td>
</tr>
<tr>
<td>Bananas</td>
<td>13</td>
</tr>
</table>
</body>
</html>
I would like to make it so if the quantity of the item is <10, the cell becomes green, while when it is >10, the cell becomes red. I can't figure how to make it work with one general function, insted of making one specifically for each cell.