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

Code Example 1

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 2

#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 3

.example {
  font-style: italic;
}

Code Example 4

.my_italic_class{
  font-style: italic;
}

Code Example 5

h1 {
  font-style: italic;
}

Learn ReactJs, React Native from akashmittal.com