Copyright © tutorialspoint.com
The font-style property determines the use of one of three font faces to be used in the rendering of a given element's text.
All the HTML elements
object.style.fontStyle="italic"; |
Here is the example using this property:
<p style="font-style:italic;"> This text will be rendered in italic style </p> |
This will produce following result:
This text will be rendered in italic style |
To Become more comfortable - Do Online Practice
Copyright © tutorialspoint.com