function dt() { document.getElementById("tt").style.backgroundColor="yellow"; }
<td id="tt">
onclick="javascript:dt()