InterviewSolution
| 1. |
What property is used for changing the font face? |
|
Answer» <P>We can use the font-family property for achieving this. The font-family property is used for specifying what font needs to be applied on the targetted DOM element. It can hold SEVERAL font names as part of “fallback” mechanism in case the browser does not support the fonts. For example, we can use: p { font-family: "Times New Roman", Times, SERIF;}In the above piece of CODE, we are applying font-family property to the paragraph element.
If you do not want the font-face of the paragraph element to be Times New Roman/Times/serif font, and you want to use the Arial/Helvetica/sans-serif font, then we can just update the CSS property of paragraph element as: p { font-family: Arial, Helvetica, sans-serif;} |
|