I have been working in a JavaScript file and my content has been working with phrases. Now I want to change the style of those phrases. The first function (see function swap
obj.style.whicheverProperty = "value"
for instance:
document.getElementById('mydiv').style.fontVariant = "italic";
The google keyword you're looking for is HTML DOM (document object model), which defines the various styles as properties of an object's style member.