const contentString = "Hello, world";
document.body.innerHTML = contentString.fontcolor("red");String.prototype.fontcolor() / notebook
String.prototype.fontcolor()
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
<font color="red">Hello, world</font>document.getElementById("yourElemId").style.color = "red";