In an email you cannot use style tag or script tag. You best bet is to style an anchor tag (<a> tag) with inline css in the style attribute and have href of this anchor tag link to a page in your site – possibly with an URL query string parameter you can pick up with code on the page to execute the function in this “landing page”.
I got it to work as a link but the only styling it keeps is the text color, text size, and text background color. In w3school’s editor it looks correct though. I think I’ll have to change it to an image with a link, little bit of a bummer since I wanted the nice click function, but emails are not kind.