IryDev• 1,580
@IryDev
Posted
Hey @FaredaElsayed, well done for completing this challenge😄
When importing a font from Google Fonts, you need to use the @import
rule in your CSS file and set the font name as the value for font-family
. Here's how it should be corrected:
CSS :
@import url('https://fonts.googleapis.com/css2?family=Montserrat');
body {
font-family: 'Montserrat', sans-serif;
}
In this example, the @import
rule is used to load the "Montserrat" font from Google Fonts, and then the font-family
property is set to 'Montserrat', sans-serif;
to apply this font to the text in the body (body
) of the page.
I hope you'll find this helpful😄
0