Q. Which of the following is correct to change font face in Web Page?
In HTML and XHTML, a font face or font family is the typeface that will be applied by a web browser to some text. The font is relevant for the display of text on the screen, on a printer or another device.
A font family and other presentation attributes of a font may be applied in HTML code in either cascading style sheets (CSS) or the deprecated HTML font element.When using CSS to apply a font whose name has whitespace in it, use quotes or single quotes to delimit the name.
A. <font = "font name"> …
B. <font name = "font name"> … </font>
C. <font face = "font name"> … </font>
D. Font Face cannot change
B. <font name = "font name"> … </font>
C. <font face = "font name"> … </font>
D. Font Face cannot change
Answer: <font face = "font name"> … </font>
In HTML and XHTML, a font face or font family is the typeface that will be applied by a web browser to some text. The font is relevant for the display of text on the screen, on a printer or another device.
A font family and other presentation attributes of a font may be applied in HTML code in either cascading style sheets (CSS) or the deprecated HTML font element.
.text { font-family: times, serif; font-size:14pt; font-style:italic; }
<p class="text">
Sample text formatted with CSS in a separate stylesheet.
</p>
<p style="font-family: times, serif; font-size:14pt; font-style:italic">
Sample text formatted with inline CSS.
</p>
<p><i><font face="times, serif" size="3">
Sample text formatted with the deprecated FONT tag.
</font></i></p>
.text { font-family: "calibri", Garamond, 'Comic Sans MS'; }
No comments