Google fonts being finicky


#1

Is there something in css/html/googleapi that makes code execution throw errors depending on quotation marks?

h2, p {
  font-family: Roboto, sans-serif;
}

This passed with no issue. However;

h1 {
  font-family: Playfair Display, serif;
}

Would not let me pass. Instead it must be "Playfair Display"
What's the logic and does this apply outside of Code Academy?


#2


it has spaces.When the name of a typeface consists of more than one word, it must be enclosed in double quotes "" (otherwise it will not be recognized) .Same with other font like "Times new roman", "Courier new" etc


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.