HTML table

HTML table

Hi All

I have a very simple HTML code that I would like to use but when I enter it in the Notes it converts to an ordinary table. 

What I am trying to achieve is a table and when a cell is touched it changes colour.  If anyone has any ideas of how I can achieve this I would be very grateful

<table>
    <tr>
        <td onclick="this.style.backgroundColor = 'Blue';">Top 1</td>
        <td onclick="this.style.backgroundColor = 'Blue';">Top 2</td>
<td onclick="this.style.backgroundColor = 'Blue';">Top 3</td>
 <td onclick="this.style.backgroundColor = 'Blue';">Top 1</td>
        </tr>

Thank you

Amanda