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