In HTML, you can set content font size using the ______ attribute, and the…

2019

In HTML, you can set content font size using the ______ attribute, and the default size of a font is ______.

  1. A.

    Size, 3

  2. B.

    Font, 5

  3. C.

    Size, 5

  4. D.

    Font, 3

Attempted by 403 students.

Show answer & explanation

Correct answer: A

Solution: In legacy HTML using the <font> tag, the size attribute controls the font size, and the default font size is 3. Note: The <font> tag is deprecated in HTML5. For modern web development, use CSS to set font sizes (for example, font-size). Legacy example: <font size="3">Some text</font> — default size is 3.

Recommended modern approach: <span style="font-size:16px;">Some text</span> or using CSS classes with the font-size property.

Explore the full course: Up Lt Grade Assistant Teacher 2025