LADYX,
<!DOCTYPE html>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<style type="text/css">
td>div {
background-image: -webkit-linear-gradient(left, #0000CD, #1E90FF);
background-image: linear-gradient(to right, #0000CD, #1E90FF);
color: #FFFF00;
}
td>span {
background-image: -webkit-linear-gradient(left, #FF1493, #F0E68C);
background-image: linear-gradient(to right, #FF1493, #F0E68C);
color: #FFFFFF;
}
td{
border: 1px solid red;
}
</style>
<script>
document.addEventListener("DOMContentLoaded", () => {
var table = document.getElementById("table");
var tr = table.getElementsByTagName("tr");
console.log(tr)
var td = null;
for (var i = 0; i < tr.length; i++) {
td = tr[i].getElementsByTagName("td");
var text = "?";
td[0].innerHTML = `<div>${td[0].innerHTML}</div>${'!'.repeat(2)}`;
td[1].innerHTML = `${text.repeat(2)}<span>${td[1].innerHTML}</span>`;
}
});
</script>
</head>
<body>
<table id="table">
<tr>
<td>Текст</td>
<td>10</td>
</tr>
<tr>
<td>Текст</td>
<td>20</td>
</tr>
<tr>
<td>Текст</td>
<td>30</td>
</tr>
</table>
</body>
</html>