<!DOCTYPE html> <html> <body> <div id="i1"> <div class="c2"> <table border> <tr> <td></td> </tr> </table> </div> </div> <script> document.querySelector('#i1 > .c2 td').innerHTML = '<a href="#" >My Dieta</a>'; </script> </body> </html>