English

Explain the following tag with a suitable example: <Font> - Computer Science 1

Advertisements
Advertisements

Question

Explain the following tag with a suitable example:

<Font>

Explain
Advertisements

Solution

It is used to format the appearance of text by changing its size, typeface (face), and colour. Specifies the text size (absolute values 1 to 7 or relative values like +2). Changes the font style (e.g., Arial, Verdana). Sets the color of the text (e.g., “red” or a hex code). It is a container tag, requiring both an opening <FONT> and a closing </FONT>.

Example:

<FONT SIZE=“5” COLOR=“blue” FACE=“Arial”>This is a formatted sentence.</FONT>

shaalaa.com
  Is there an error in this question or solution?
2025-2026 (March) Official Board Paper

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×