Check out example codes for "css font style". It will help you in understanding the concepts better.

Code Example 1

#example {
	font-style: normal; /* no specification, default */
  	font-style: italic; /* font is italic */
    font-style: oblique; /* font is italic, even if italic letters are not specified for font family */
    font-style: inherit; /* inherit property from parent */
	font-style: initial; /* default value */
}

Code Example 2

font-style: italic;

Code Example 3

p {
  font-family: "Times New Roman", Times, serif;
}

p.normal {
  font-style: normal;
}


p.italic {
  font-style: italic;
}


p.oblique {
  font-style: oblique;
}

Code Example 4

style= "font-style: italic;"

Code Example 5

.my_italic_class{
  font-style: italic;
}

Code Example 6

.example {
  font-style: italic;
}

Learn ReactJs, React Native from akashmittal.com