Using custom font files

by danielkwood

HTML

<html>
  <head>
    <title>Using custom font files</title>
    <link rel="stylesheet" href="style.css"/>
  </head>
  
  <body>
    <h1>Using custom font files</h1>
    <p>The text on this page is using the Jungle font family.</p>
  </body>
</html>

CSS

@font-face {
  font-family: Jungle;
  src: url(jungle.ttf);
}

body {
  font-family: Jungle;
}