Changing The Font of My Text Output in HTML (Snippet Included)

Hi guys,

So I have this code I pulled online that allows me to display the current date and day. However, I am unsure how to change the font to Verdana.

I’ve researched online but it seems that nothing is working. Maybe I am inserting their code into the wrong place.

Here is the code:

/*------------------------------------

This code seems pretty overkill. Try this:

$w(‘#myText’).text = new Date().toLocaleDateString();

You can set styling using the GUI this way. Or if you want to keep the code, then put it in an iframe and use CSS:
https://www.w3schools.com/CSSref/pr_font_font-family.asp