Codepen: https://codepen.io/bgbs/pen/XaNOgM
What I'm trying to do is have the JavaScript select a specific word in td, and wrap it with span for further styling. But it doesn't want to work for some reason. Any ideas?
<style>
  .big {
    font-size: 55px;
  }
</style>
<script>
  function chng() {
    var text = document.getElementByTagName('td').innerHTML;
    var text2 = text.replace('Germany','<span class="big">Germany</span>');
    document.getElementByTagName('td').innerHTML = text2;
  }
</script>
<body>
  <table>
    <tr>
      <td>Brazil - England - Germany</td>
    </tr>
  </table>
  <button onclick="chng()">Try it</button>
</body> 
     
    