Computer scienceFrontendCSSBasic propertiesWorking with Text

Using Fonts

File

Report a typo

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

A)

@import url('my-font.otf');

B)

.block {  
  @font-family { 
    url('my-font.otf'); 
  }
}

C)

@font-family { 
  url('my-font.otf'); 
}

D)

@font-face {
  src: url('my-font.otf');
}

E)

.block {
  font-family: 'my-font.otf';
}
Select one option from the list
___

Create a free account to access the full topic