JSFiddle - React, Tailwind, and code Playground

HTML

<p id="html">Nice to meet you!</p>
<a id="incFontS" href="#">Increase Text</a>

JavaScript

var incFont = document.getElementById("incFontS");
incFont.onclick = function () {
    window.alert("it ran!");
}