RussCoder
0
Q:

CSS font


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

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

    }

p.b {
  font-family: Arial, Helvetica, 
    sans-serif;
}
 
0
p {
  font-family: "Times New Roman", Times, serif;
}

p.normal {
  font-style: normal;
}


p.italic {
  font-style: italic;
}


p.oblique {
  font-style: oblique;
} 
6
Example of usage of font-family:
font-family: Verdana, Arial, Tahoma, Serif;

While using this with element
p{
	font-family: Verdana, Arial, Tahoma, Serif;
}
2
p.impact {
  font-family: Impact, Charcoal, sans-serif;
}
0
.example {
  font-style: italic;
}
1
p {
  font-family: "Times New Roman", Times, serif;
}
0
/* Answer to: "default font family css" */

/*
  The font family of a text is set with the font-family property.

  The font-family property should hold several font names as a
  "fallback" system. If the browser does not support the first font,
  it tries the next font, and so on. 

  Start with the font you want, and end with a generic family, to let
  the browser pick a similar font in the generic family, if no other
  fonts are available.

  For more information, go to:
  https://www.w3schools.com/css/css_font.asp
*/
2

New to Communities?

Join the community