Computer scienceFrontendCSSBasic propertiesWorking with Text

Using Fonts

URL

Report a typo

What is the right way to connect a font using a link?

A)

@font-face { 
  src: url('https://fonts.googleapis.com/css2?family=Pattaya&display=swap');
}

B)

.block { 
  font-family: url('https://fonts.googleapis.com/css2?family=Pattaya&display=swap'); 
}

C)

@import url('https://fonts.googleapis.com/css2?family=Pattaya&display=swap');

D)

.block {  
  @font-family { 
    url('https://fonts.googleapis.com/css2?family=Pattaya&display=swap'); 
  }
}
Select one option from the list
___

Create a free account to access the full topic