css font style

CSS
.my_italic_class{
  font-style: italic;
}#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 */
}/* Answer to: "css text style" */

/*
  Honestly, it'll take a while to answer this "question" due to it
  being very non-specific, however, I'd suggest that you have a look
  at these two links:

  https://www.w3schools.com/css/css_text.asp
  https://www.w3schools.com/cssref/pr_font_font-style.asp
*/.example {
  font-style: italic;
}p {
  font-family: "Times New Roman", Times, serif;
}

p.normal {
  font-style: normal;
}


p.italic {
  font-style: italic;
}


p.oblique {
  font-style: oblique;
} h1 {
  font-style: italic;
}
Source

Also in CSS: