How to Italic Text Using CSS
Like us on facebook to get more updates
If you want to decorate text for italic then you should use text-italic property. Here some points are given below for text-italic CSS property.
- The font-style property is mostly used to specify italic text.
- This property has following values:
- Normal- The text is shown normally.
- Italic- The text is shown in italic.
Syntax:
<style type=”text/css”> elementSelector{ font-style:italic; }
Example:
<html> <head> <style type="text/css"> h1{ font-style:italic; } h2{ text-italic:normal; } </style> </head> <body> <h1>This is 1st heading.</h1> <h2>This is 2nd heading.</h2> </body> </html>
Output: