English

Which of the following options will set the font family of all paragraphs to ‘Arial’?

Advertisements

Question

Which of the following options will set the font family of all paragraphs to ‘Arial’?

Options

  • <style>p{font-family:arial;}</style>

  • <style>p{fontfamily:Arial;}</style>

  • <style>p{font:Arial;}</style>

  • <style>p{font-type:Arial;}</style>

MCQ
Advertisements

Solution

<style>p{font-family:arial;}</style>

Explanation:

This CSS rule changes the font family of all paragraph <p> elements to ‘Arial’.

shaalaa.com
  Is there an error in this question or solution?
2024-2025 (March) Set 4
Advertisements
Share
Notifications



      Forgot password?
Use app×