Typography Step 5 - Question

Step 5 Passed

Create a body selector and give it a font-family set to Open Sans with a fallback of sans-serif.

Remember that fonts with spaces in the name must be wrapped in quotes for CSS.

body{
  font-family: "Open Sans", sans-serif
}

So, I passed this step however I don’t understand why we don’t use a “;” at the end of sans serif can anyone explain please ?

If I remember, with CSS, it doesn’t care about the last attribute. It’s a separator and there is nothing to separate it from. It is however, probably good practice.

1 Like

Thank you Mr. Smith :slight_smile:

1 Like

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