Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6657519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:46:41+00:00 2026-05-26T01:46:41+00:00

I remember hearing a long time ago that it was considered best practice to

  • 0

I remember hearing a long time ago that it was considered “best practice” to wrap quotes around font names that contain multiple words in the CSS font-family property, like this:

font-family: "Arial Narrow", Arial, Helvetica, sans-serif;

For the heck of it, I tried removing the quotes from "Arial Narrow" and Safari and Firefox don’t have any problem rendering it.

So, is there any logic to this rule of thumb, or is it just a myth? Was it an issue with older browsers that no longer applies to the current versions? I’ve been doing this for so long that I never stopped to think if it was actually necessary.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T01:46:42+00:00Added an answer on May 26, 2026 at 1:46 am

    The CSS 2.1 spec tells us that:

    Font family names must either be given quoted as strings, or unquoted
    as a sequence of one or more identifiers. This means most punctuation
    characters and digits at the start of each token must be escaped in
    unquoted font family names.

    It goes on to say:

    If a sequence of identifiers is given as a font family name, the
    computed value is the name converted to a string by joining all the
    identifiers in the sequence by single spaces.

    To avoid mistakes in escaping, it is recommended to quote font family
    names that contain white space, digits, or punctuation characters
    other than hyphens:

    So yes, there is a difference, but one that’s unlikely to cause any problems. Personally, I have always quoted font names when they contain spaces. In a few (presumably very rare) cases, the quotes are absolutely required:

    Font family names that happen to be the same as a keyword value
    (‘inherit’, ‘serif’, ‘sans-serif’, ‘monospace’, ‘fantasy’, and
    ‘cursive’) must be quoted to prevent confusion with the keywords with
    the same names. The keywords ‘initial’ and ‘default’ are reserved for
    future use and must also be quoted when used as font names.

    Also note that punctuation such as / or ! within an identifier may also need to be quoted or escaped.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I remember when - a long time ago - I was messing around with
I remember years ago hearing that it is more efficient to have loops decrementing
I remember do this long time ago with OpenSSL, but I want to know
I remember a long time ago when I was working with characters in .NET.
I know that Hpricot is still a standard but I remember hearing about a
I remember hearing that the following code is not C++ compliant and was hoping
I remember hearing about a general optimization problem that relates to function closures, stating
I remember hearing that for performance a development machine should be 32 bit, while
I remember hearing about a rich client platform based on Visual Studio, similar to
Would this work on all platforms? i know windows does \r\n, and remember hearing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.