Javascript - String HTML Methods

Introduction

The following table enumerates the HTML methods.

Method
Output
anchor(name)
<a name="name">string</a>
big()
<big>string</big>
bold()
<b>string</b>
fixed()
<tt>string</tt>
fontcolor(color)
<font color="color">string</font>
fontsize(size)
<font size="size">string</font>
italics()
<i>string</i>
link(url)
<a href="url">string</a>
small()
<small>string</small>
strike()
<strike>string</strike>
sub()
<sub>string</sub>
sup()
<sup>string</sup>

Demo

var stringValue = "hello world";
console.log(stringValue.big());

Result