Helvetica CSS font quotes

I want to use Helvetica in a font list, for example

font-family: 'Helvetica', Arial, sans-serif; 

The fact is that sometimes I notice that people put Helvetica in quotation marks, and sometimes not.

Can anyone shed some light on why?

+4
source share
3 answers

This is really a matter of preference, as there are no spaces in "Times New Roman" , because quotation marks are completely optional, just a question of what they are used to ...

+4
source

Quotes are only needed when the font name contains spaces. Even W3C do not quote Helvetica.

+2
source

Citations include verbose font names such as Sans Serif or Times New Roman.
Because Helvetica is one word, quotation marks are not needed.

+1
source

Source: https://habr.com/ru/post/1342304/


All Articles