JavaScript String Object
The italics() method is used to display a string in italic.
This method returns the string embedded in the <i> tag, like this:
<i>string</i>
![]()
The italics() method is supported in all major browsers.
Display text in italic:
JavaScript String Object
Your message has been sent to W3Schools.